@layer reset, theme, base, components, utilities;

/* ==========================================================================
   THEME
   ========================================================================== */
@layer theme {
  :root {
    --bg-color: #ffffff;
    --bg-color-rgb: 255, 255, 255;
    --text-color: #0f172a;
    --text-color-rgb: 15, 23, 42;
    --text-secondary: #475569;
    --accent-color: #008080; /* Teal */
    --accent-color-rgb: 0, 128, 128;
  }

  .dark {
    --bg-color: #0a192f;
    --bg-color-rgb: 10, 25, 47;
    --text-color: #ccd6f6;
    --text-color-rgb: 204, 214, 246;
    --text-secondary: #8892b0;
    --accent-color: #64ffda; /* Aqua */
    --accent-color-rgb: 100, 255, 218;
  }
} /* end @layer theme */

/* ==========================================================================
   RESET
   ========================================================================== */
@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  button,
  [type="button"],
  [type="reset"],
  [type="submit"] {
    background: transparent;
    border: none;
    padding: 0;
    outline: none;
    font: inherit;
    cursor: pointer;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
  }

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

  svg {
    display: block;
  }
} /* end @layer reset */

/* ==========================================================================
   BASE
   ========================================================================== */
@layer base {
  html,
  body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--bg-color);
    color: var(--text-color);
  }

  body {
    font-family: "Outfit", sans-serif;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    transition:
      background-color 0.5s ease,
      color 0.5s ease;
  }

  ::selection {
    background-color: var(--accent-color);
    color: var(--bg-color);
  }

  /* Custom Scrollbar Styles (Extracted from HTML) */
  ::-webkit-scrollbar {
    width: 14px;
    height: 14px;
    display: block;
  }

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

  ::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 20px;
    border: 4px solid var(--bg-color);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
  }

  /* Firefox Support */
  * {
    scrollbar-width: auto;
    scrollbar-color: var(--accent-color) var(--bg-color);
  }

  /* Force visibility on sections */
  .app-section {
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
} /* end @layer base */

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
@layer components {
  .nav-header {
    position: fixed;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    top: 0.5rem;
    width: 95%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
  }

  /* Dark mode Header */
  .dark .nav-header {
    border-color: rgba(100, 116, 139, 0.1);
    background-color: rgba(15, 23, 42, 0.95);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  }

  /* Desktop Header Breakpoint (>= 1024px) */
  @media (min-width: 1024px) {
    .nav-header {
      top: 0;
      width: 100%;
      left: 0;
      transform: none;
      border-radius: 0;
      border: none;
      background-color: transparent;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      box-shadow: none;
      padding: 2rem 1.5rem;
    }

    .dark .nav-header {
      border: none;
      background-color: transparent;
      box-shadow: none;
    }

    .nav-logo-btn {
      cursor: default;
      pointer-events: none;
    }
  }

  /* Brand Logo Button */
  .nav-logo-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: none;
    outline: none;
  }

  .nav-logo-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent-color);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    transition: transform 0.3s ease;
  }

  .nav-logo-text {
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.1em;
    font-size: 1.125rem;
    transition: color 0.3s ease;
  }

  .nav-logo-chevron {
    font-size: 0.75rem;
    color: rgba(15, 23, 42, 0.4);
    transition: all 0.3s ease;
  }

  .nav-logo-btn:hover .nav-logo-text,
  .nav-logo-btn:hover .nav-logo-chevron {
    color: var(--accent-color);
  }

  .nav-logo-btn:hover .nav-logo-icon {
    transform: scale(1.1);
  }

  .dark .nav-logo-chevron {
    color: rgba(204, 214, 246, 0.4);
  }



  /* Nav Actions Buttons (Theme & Lang) */
  .nav-theme-btn,
  .nav-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    border: none;
    background-color: transparent;
    color: var(--text-color);
    transition: all 0.3s ease;
  }

  .nav-theme-btn {
    width: 2.5rem;
    padding: 0;
  }

  .nav-theme-btn:hover,
  .nav-lang-btn:hover {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
  }

  .nav-lang-btn {
    gap: 0.5rem;
    font-weight: 500;
  }

  .nav-lang-chevron {
    font-size: 0.75rem;
    opacity: 0.5;
    transition: transform 0.3s ease;
  }

  .nav-lang-btn[aria-expanded="true"] .nav-lang-chevron {
    transform: rotate(180deg);
  }

  .nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    text-decoration: none;
  }

  .nav-dropdown-item:hover {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color);
  }

  .nav-dropdown-icon {
    font-size: 1rem;
    color: var(--text-secondary);
  }

  .nav-dropdown-item:hover .nav-dropdown-icon {
    color: var(--accent-color);
  }

  /* Social Sidebar Links */
  .social-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
  }

  .social-sidebar-link:hover {
    color: var(--accent-color);
    transform: translateX(3px);
  }

  /* Header Dropdowns (Mobile Social & Language Menu) */
  .nav-dropdown-wrapper {
    position: relative;
    z-index: 50;
  }

  .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 1rem;
    width: 12rem;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    overflow: hidden;
    transform-origin: top left;
    transform: scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
  }

  .nav-dropdown-menu--right {
    left: auto;
    right: 0;
    margin-top: 0.5rem;
    width: 8rem;
    transform-origin: top right;
  }

  .dark .nav-dropdown-menu {
    background-color: rgba(15, 23, 42, 0.95);
    border-color: rgba(100, 116, 139, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  }

  @media (min-width: 1024px) {
    #social-menu {
      display: none;
    }
  }

  /* Utility classes directly managed by JS */
  .nav-dropdown-menu.dropdown-open {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
  }

  .app-section {
    display: none;
    scrollbar-gutter: stable;
  }

  .app-section.section-active {
    display: flex;
  }

  .section-hidden {
    display: none;
  }

  /* Navigation Link JS Modifier */
  .nav-item-active {
    color: var(--accent-color);
    background-color: rgba(0, 128, 128, 0.05); /* Teal accent/5 */
  }

  .dark .nav-item-active {
    background-color: rgba(100, 255, 218, 0.05); /* Aqua accent/5 */
  }

  .nav-dropdown-content {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.25rem;
  }

  .nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: #1e293b;
    transition: all 0.2s ease;
  }

  .nav-dropdown-item span {
    font-size: 0.875rem;
    font-family: "Fira Code", monospace;
    font-weight: 500;
  }

  .dark .nav-dropdown-item {
    color: #ffffff;
  }

  .nav-dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--accent-color);
  }

  .dark .nav-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
  }

  .nav-dropdown-icon {
    font-size: 1.125rem;
    width: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
  }

  .nav-dropdown-item:hover .nav-dropdown-icon {
    transform: scale(1.1);
  }

  /* Actions Container */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  /* Theme Button */
  .nav-theme-btn {
    padding: 0.5rem;
    border-radius: 9999px;
    color: var(--text-color);
    transition: all 0.2s ease;
  }

  .nav-theme-btn:hover {
    background-color: rgba(15, 23, 42, 0.05);
    color: var(--accent-color);
  }

  .dark .nav-theme-btn:hover {
    background-color: rgba(204, 214, 246, 0.05);
  }

  .nav-theme-icon {
    font-size: 1.25rem;
    transition: all 0.5s ease;
  }

  /* Language Button */
  .nav-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--text-color);
    font-family: "Fira Code", monospace;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
  }

  .nav-lang-btn:hover {
    background-color: rgba(15, 23, 42, 0.05);
    color: var(--text-color);
  }

  .dark .nav-lang-btn:hover {
    background-color: rgba(204, 214, 246, 0.05);
  }

  .nav-lang-chevron {
    font-size: 10px;
    transition: transform 0.3s ease;
  }

  .nav-lang-item {
    text-align: left;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-family: "Fira Code", monospace;
    color: var(--text-color);
    border-radius: 0.5rem;
    transition:
      color 0.2s ease,
      background-color 0.2s ease;
  }

  .nav-lang-item:hover {
    color: var(--bg-color);
    background-color: var(--accent-color);
  }

  .dark .nav-lang-item:hover {
    color: var(--bg-color);
  }

  /* Sidebar */
  .social-sidebar {
    display: none;
    position: fixed;
    left: 1.5rem;
    width: 1.5rem;
    top: 0;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    padding-bottom: 3rem;
    gap: 0rem;
    z-index: 40;
    animation: fadeIn 0.5s ease-out forwards;
  }

  @media (min-width: 1024px) {
    .social-sidebar {
      display: flex;
    }
  }

  .social-sidebar-line {
    width: 0.5px;
    height: 80px;
    background-color: rgba(100, 116, 139, 0.6);
    position: absolute;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    animation: fadeIn 0.5s ease-out forwards;
  }

  .social-sidebar-link {
    color: var(--text-color);
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
    z-index: 50;
    font-size: 1.125rem;
    line-height: 1.75rem;
    display: flex;
  }

  .social-sidebar-link:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: scale(1.1);
  }

  .social-sidebar-link--first {
    margin-top: 8rem;
  }

  .floating-dock {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 9999px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    width: fit-content;
    max-width: 95%;
    z-index: 50;
    animation: fadeIn 0.5s ease-out forwards;
    transition: all 0.3s ease;
  }

  .dark .floating-dock {
    background-color: rgba(15, 23, 42, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  }

  @media (min-width: 1024px) {
    .floating-dock {
      bottom: 1.25rem;
    }
  }

  @media (max-width: 500px) {
    .floating-dock {
      bottom: 0;
      left: 0;
      transform: none;
      width: 100%;
      max-width: none;
      border-radius: 0;
      border-left: none;
      border-right: none;
      border-bottom: none;
      justify-content: space-around;
    }
  }

  /* Dock Links */
  .dock-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    color: var(--text-color);
    opacity: 0.4;
    text-decoration: none;
    white-space: nowrap;
  }

  .dock-link:hover {
    color: var(--accent-color);
    opacity: 1;
  }

  /* Active State (Managed by JS) */
  .dock-link.nav-item-active {
    color: var(--accent-color);
    opacity: 1;
    background-color: rgba(0, 128, 128, 0.1);
  }

  .dark .dock-link.nav-item-active {
    background-color: rgba(100, 255, 218, 0.1);
  }

  @media (max-width: 480px) {
    .dock-link {
      padding: 0.5rem 0.5rem;
      gap: 0.25rem;
    }
  }

  .dock-icon {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.3s ease;
  }

  .dock-link:hover .dock-icon {
    transform: scale(1.1);
  }

  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .dark .lightbox {
    background-color: rgba(15, 23, 42, 0.4);
  }

  .lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: rgba(15, 23, 42, 0.7);
    transition: color 0.2s ease;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dark .lightbox-close {
    color: rgba(255, 255, 255, 0.7);
  }

  .lightbox-close:hover {
    color: #0f172a;
  }

  .dark .lightbox-close:hover {
    color: #ffffff;
  }

  .lightbox-close i {
    font-size: 1.5rem;
  }

  .lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    object-fit: contain;
  }

  .lightbox.active .lightbox-img {
    transform: scale(1);
  }

  .project-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  @media (min-width: 768px) {
    .project-modal {
      padding: 2rem;
    }
  }

  .project-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
    opacity: 0;
  }

  .dark .modal-backdrop {
    background-color: rgba(15, 23, 42, 0.4);
  }

  .project-modal.active .modal-backdrop {
    opacity: 1;
  }

  .modal-container {
    position: relative;
    width: 100%;
    max-width: 64rem; /* 5xl equivalent */
    max-height: 90vh;
    background-color: #ffffff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(226, 232, 240, 1);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    z-index: 10;
  }

  .dark .modal-container {
    background-color: #0f172a;
    border-color: rgba(30, 41, 59, 1);
  }

  .project-modal.active .modal-container {
    transform: scale(1);
  }

  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 1);
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
  }

  .dark .modal-header {
    border-color: rgba(30, 41, 59, 1);
    background-color: rgba(15, 23, 42, 0.5);
  }

  .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
  }

  .modal-close {
    padding: 0.5rem;
    border-radius: 9999px;
    background: transparent;
    border: none;
    color: rgba(var(--text-color-rgb), 0.6);
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-close:hover {
    background-color: rgba(241, 245, 249, 1);
    color: var(--accent-color);
  }

  .dark .modal-close:hover {
    background-color: rgba(30, 41, 59, 1);
  }

  .modal-close i {
    font-size: 1.25rem;
  }

  .modal-body {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
  }

  .modal-body-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  @media (min-width: 768px) {
    .modal-body-content {
      padding: 2.5rem;
    }
  }

  /* Gallery Grid */
  .modal-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  @media (min-width: 768px) {
    .modal-gallery {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .modal-gallery-item {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  .dark .modal-gallery-item {
    border-color: rgba(30, 41, 59, 1);
  }

  .modal-gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    cursor: zoom-in;
  }

  .modal-gallery-item:hover img {
    transform: scale(1.05);
  }

  /* Detail Columns */
  .modal-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  @media (min-width: 1024px) {
    .modal-details-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .modal-content-main {
      grid-column: span 2;
    }
  }

  .modal-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .modal-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .modal-text {
    color: rgba(var(--text-color-rgb), 0.8);
    line-height: 1.6;
    font-size: 0.875rem;
  }

  @media (min-width: 768px) {
    .modal-text {
      font-size: 1rem;
    }
  }

  .modal-features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(var(--text-color-rgb), 0.7);
    padding: 0;
    list-style: none;
  }

  .modal-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem; /* Increased gap */
    padding: 0.25rem 0;
  }

  @media (min-width: 768px) {
    .modal-features-list {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Stack Boxes */
  .modal-stack-box {
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 1);
    margin-bottom: 2rem;
  }

  .dark .modal-stack-box {
    background-color: rgba(30, 41, 59, 0.4);
    border-color: rgba(30, 41, 59, 1);
  }

  .modal-stack-title {
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

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

  .modal-stack-tag {
    padding: 0.25rem 0.75rem;
    background-color: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.5rem;
    border: 1px solid rgba(var(--accent-color-rgb), 0.2);
    display: inline-block;
  }

  /* GitHub Button */
  .modal-github-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background-color: var(--accent-color);
    color: #ffffff;
    border-radius: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .dark .modal-github-btn {
    color: #0f172a;
  }

  .modal-github-btn:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 128, 128, 0.3);
    transform: translateY(-2px);
  }

  .modal-github-btn i:last-child {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
  }

  .modal-github-btn:hover i:last-child {
    transform: translateX(4px);
  }

  @media (max-width: 480px) {
    .dock-icon {
      font-size: 1.125rem;
    }
  }

  .dock-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    font-family: "Fira Code", monospace;
    letter-spacing: 0.2em;
    font-weight: 700;
    line-height: 1;
  }

  @media (min-width: 768px) {
    .dock-label {
      font-size: 0.75rem;
    }
  }

  @media (max-width: 450px) {
    .dock-label {
      display: none;
    }
  }

  @media (max-width: 330px) {
    .dock-link {
      padding: 0.5rem 0.25rem;
    }
    .dock-icon {
      font-size: 1rem;
    }
  }

  .shape-square-top {
    position: fixed;
    top: 6rem;
    right: 3rem;
    width: 6rem;
    height: 6rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    z-index: 0;
  }

  .dark .shape-square-top {
    border-color: rgba(148, 163, 184, 0.2);
  }

  .shape-square-bottom {
    position: fixed;
    bottom: 8rem;
    left: -2rem;
    width: 8rem;
    height: 8rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transform: rotate(45deg);
  }

  .bg-dots {
    background-image: radial-gradient(
      var(--text-color) 0.8px,
      transparent 0.8px
    );
    background-size: 24px 24px;
    opacity: 0.05;
    pointer-events: none;
  }

  .dark .bg-dots {
    background-image: radial-gradient(
      var(--accent-color) 0.8px,
      transparent 0.8px
    );
    opacity: 0.04;
  }

  .bg-dots-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
  }

  /* ==========================================================================
     COMPONENTS (Page-Specific Sections)
     ========================================================================== */
  .home-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: none; /* Hidden by default, shown by .section-active */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 4rem 2rem 8rem 2rem;
    overflow-y: auto;
    transition: all 0.3s ease;
  }

  .home-section.section-active {
    display: flex;
  }

  @media (min-width: 1024px) {
    .home-section {
      padding: 0;
      justify-content: center;
      overflow: hidden;
    }
  }

  /* Height breakpoints for Home Section */
  @media (max-height: 820px) {
    .home-section {
      padding-top: 2.5rem;
      padding-bottom: 6rem;
    }
  }

  @media (max-height: 740px) {
    .home-section {
      padding-top: 2rem;
      padding-bottom: 20rem; /* pb-80 equivalent */
    }
  }

  /* Quote Box */
  .quote-box {
    position: absolute;
    bottom: 4rem;
    right: 4rem;
    display: none;
    border: 1px solid rgba(var(--text-color-rgb), 0.1);
    padding: 2.5rem;
    max-width: 24rem;
    z-index: 50;
    background-color: rgba(var(--bg-color-rgb), 0.85);
    backdrop-filter: blur(24px);
    transition: all 0.5s ease;
  }

  .dark .quote-box {
    border-color: rgba(var(--text-color-rgb), 0.1);
    background-color: rgba(var(--bg-color-rgb), 0.4);
  }

  @media (min-width: 1550px) {
    .quote-box {
      display: block;
    }
  }

  .quote-icon-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--bg-color);
    padding: 0 0.75rem;
    transform: translateY(-50%);
    margin-left: 1.5rem;
    color: rgba(100, 116, 139, 0.5);
  }

  .quote-text {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-style: italic;
    line-height: 1.625;
  }

  .quote-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .quote-icon-right {
    font-size: 1.25rem;
    color: rgba(100, 116, 139, 0.5);
    align-self: flex-end;
    margin-bottom: 0.25rem;
  }

  .quote-author {
    color: rgba(100, 116, 139, 0.6);
    text-align: right;
    font-family: "Fira Code", monospace;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
  }

  /* Hero Container */
  .home-hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    max-width: 72rem; /* max-w-6xl */
    padding: 3rem 0;
    transition: transform 0.3s ease;
  }

  @media (min-width: 1024px) {
    .home-hero-container {
      flex-direction: row;
      gap: 6rem;
    }
  }

  @media (min-width: 1550px) {
    .home-hero-container {
      transform: translateY(-3rem);
    }
  }

  /* Responsive Gaps for Hero */
  @media (max-width: 523px) {
    .home-hero-container {
      gap: 2rem;
    }
  }

  @media (max-width: 450px) {
    .home-hero-container {
      gap: 0.5rem;
    }
  }

  @media (max-height: 900px) {
    .home-hero-container {
      gap: 2rem;
      padding-top: 2.5rem;
      padding-bottom: 2.5rem;
    }
  }

  @media (max-height: 820px) {
    .home-hero-container {
      gap: 1.5rem;
      padding-top: 2rem;
      padding-bottom: 2rem;
    }
  }

  @media (max-height: 740px) {
    .home-hero-container {
      gap: 1.5rem;
      padding-top: 2rem;
      padding-bottom: 2rem;
    }
  }

  /* Profile Decorations */
  .profile-decoration-geometric {
    position: absolute;
    top: 25%;
    left: -3rem;
    color: rgba(0, 128, 128, 0.6); /* accent/60 */
    animation: pulse 3s infinite;
  }

  .dark .profile-decoration-geometric {
    color: rgba(255, 255, 255, 0.4);
  }

  .profile-wrapper {
    position: relative;
    width: 20rem; /* w-80 */
  }

  @media (min-width: 768px) {
    .profile-wrapper {
      width: 24rem;
    }
  }

  @media (max-height: 900px) {
    .profile-wrapper {
      width: 18rem;
    }
  }

  @media (max-height: 900px) and (min-width: 768px) {
    .profile-wrapper {
      width: 20rem;
    }
  }

  @media (max-height: 820px) {
    .profile-wrapper {
      width: 16rem;
    }
  }

  @media (max-width: 450px) {
    .profile-wrapper {
      width: 16rem;
    }
  }

  @media (max-width: 370px) {
    .profile-wrapper {
      width: 15rem;
    }
  }

  .profile-glow {
    position: absolute;
    inset: -1rem;
    background: linear-gradient(to top right, var(--accent-color), #2563eb);
    border-radius: 9999px;
    filter: blur(48px);
    opacity: 0.2;
    transition: opacity 0.7s ease;
  }
  .profile-wrapper:hover .profile-glow {
    opacity: 0.6;
  }

  .profile-image-container {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(var(--text-color-rgb), 0.1);
    padding: 0.5rem;
    background-color: rgba(var(--bg-color-rgb), 0.5);
  }

  .dark .profile-image-container {
    border-color: rgba(255, 255, 255, 0.3);
  }

  .profile-image-inner {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    overflow: hidden;
  }

  .profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all 0.7s ease;
  }

  .profile-wrapper:hover .profile-image {
    filter: grayscale(0);
    transform: scale(1.1);
  }

  /* Text Content */
  .home-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    max-width: 36rem;
  }

  @media (min-width: 1024px) {
    .home-text-content {
      align-items: flex-start;
      text-align: left;
    }
  }

  @media (max-width: 523px) {
    .home-text-content {
      gap: 1rem;
    }
  }

  @media (max-height: 900px) {
    .home-text-content {
      gap: 1.5rem;
    }
  }

  @media (max-height: 820px) {
    .home-text-content {
      gap: 1.25rem;
    }
  }

  .home-title {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.15;
  }

  @media (min-width: 1024px) {
    .home-title {
      font-size: 3rem;
      line-height: 1.1;
    }
  }

  @media (max-width: 523px) {
    .home-title {
      font-size: 1.875rem;
    }
  }

  @media (max-width: 450px) {
    .home-title {
      font-size: 2.25rem;
    }
  }

  @media (max-width: 370px) {
    .home-title {
      font-size: 1.875rem;
    }
  }

  @media (max-height: 900px) {
    .home-title {
      font-size: 1.875rem;
    }
  }

  @media (max-height: 740px) {
    .home-title {
      font-size: 1.5rem;
    }
  }

  .home-description {
    color: rgba(var(--text-color-rgb), 0.65);
    font-size: 1.125rem;
    line-height: 1.625;
  }

  @media (max-width: 450px) {
    .home-description {
      font-size: 1rem;
      line-height: 1.5;
    }
  }

  @media (max-width: 370px) {
    .home-description {
      font-size: 1rem;
    }
  }

  @media (max-height: 740px) {
    .home-description {
      font-size: 1rem;
      line-height: 1.5;
    }
  }

  /* Home Actions */
  .home-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
  }

  @media (min-width: 1024px) {
    .home-actions {
      justify-content: flex-start;
      margin-top: 1.5rem;
      max-width: none;
    }
  }

  @media (max-width: 540px) {
    .home-actions {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      max-width: 400px;
      margin-left: auto;
      margin-right: auto;
    }
  }

  @media (max-width: 523px) {
    .home-actions {
      margin-top: 1rem;
    }
  }

  @media (min-width: 768px) {
    .home-actions {
      margin-top: 0.5rem;
    }
  }

  @media (max-height: 820px) {
    .home-actions {
      margin-top: 0.5rem;
    }
  }

  @media (max-width: 365px) {
    .home-actions {
      gap: 0.5rem;
    }
  }

  .btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    transition: all 0.5s ease;
    text-decoration: none;
    white-space: nowrap;
  }

  @media (max-width: 365px) {
    .btn-action {
      padding-left: 1rem;
      padding-right: 1rem;
    }
  }

  /* Modifier: CV */
  .btn-cv {
    width: auto;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 10px 15px -3px rgba(var(--accent-color-rgb), 0.05);
  }
  .btn-cv:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 10px 15px -3px rgba(var(--accent-color-rgb), 0.2);
  }
  @media (max-width: 540px) {
    .btn-cv {
      grid-column: span 2;
    }
  }

  /* Modifier: Email */
  .btn-email {
    background-color: #e11d48; /* rose-600 */
    color: #ffffff;
    border: 1px solid #e11d48;
  }
  .btn-email:hover {
    background-color: transparent;
    color: #f43f5e; /* rose-500 */
    border-color: #f43f5e;
  }

  /* Modifier: Call */
  .btn-call {
    background-color: #0ea5e9; /* sky-500 */
    color: #ffffff;
    border: 1px solid #0ea5e9;
  }
  .btn-call:hover {
    background-color: transparent;
    color: #38bdf8; /* sky-400 */
    border-color: #38bdf8;
  }

  .btn-action i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
  }
  .btn-cv:hover i {
    transform: translateY(-0.125rem);
  }

  .btn-email:hover i {
    transform: rotate(12deg);
  }

  .btn-call:hover i {
    transform: scale(1.1);
  }

  /* ==========================================================================
     WORKS SECTION (PROJECTS)
     ========================================================================== */
  .works-section {
    padding: 9rem 2rem 10rem;
    display: none; /* hidden by default like home */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    width: 100%;
    height: 100vh;
    transition: all 0.3s ease;
  }

  .works-section.section-active {
    display: flex;
  }

  @media (max-width: 768px) {
    .works-section {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }
  }

  .works-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
  }

  .works-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
  }

  @media (min-width: 1024px) {
    .works-title {
      font-size: 2.5rem;
    }
  }

  .works-title-slash {
    color: var(--accent-color);
    margin-right: 0.35rem;
  }

  .works-title-underline {
    width: 6rem;
    height: 0.25rem;
    border-radius: 9999px;
    margin: 0 auto;
    background-color: var(--accent-color);
  }

  .works-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 72rem;
  }

  .project-card {
    position: relative;
    background-color: var(--bg-color);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid rgba(148, 163, 184, 0.55);
    transition:
      transform 0.5s ease,
      box-shadow 0.5s ease,
      border-color 0.3s ease;
    width: 100%;
    max-width: 400px;
    cursor: pointer;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  }

  .dark .project-card {
    border-color: rgba(148, 163, 184, 0.35);
  }

  @media (min-width: 610px) {
    .project-card {
      max-width: 420px;
    }
  }

  @media (min-width: 768px) {
    .project-card {
      max-width: none;
      width: calc(50% - 1rem);
      margin-left: 0;
      margin-right: 0;
    }
  }

  @media (min-width: 1024px) {
    .project-card {
      width: calc(33.333% - 1.333rem);
      min-width: 420px;
    }
  }

  .project-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-0.5rem);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
  }

  .dark .project-card:hover {
    box-shadow: 0 0 25px rgba(100, 255, 218, 0.3);
  }

  .project-card-image-wrapper {
    position: relative;
    height: 12rem;
    overflow: hidden;
  }

  @media (min-width: 768px) {
    .project-card-image-wrapper {
      height: 13rem;
    }
  }

  .project-card-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(var(--accent-color-rgb), 0.2);
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
  }

  .project-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
  }

  .project-card:hover .project-card-overlay {
    opacity: 1;
  }

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

  .project-card-body {
    padding: 1.5rem;
  }

  .project-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
  }

  .project-card:hover .project-card-title {
    color: var(--accent-color);
  }

  .project-card-description {
    color: rgba(var(--text-color-rgb), 0.8);
    font-size: 0.875rem;
    font-weight: 300;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .project-card-tech {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(var(--text-color-rgb), 0.35);
    margin-bottom: 1.5rem;
  }

  .project-tech-icon {
    font-size: 1.5rem;
    transition:
      color 0.25s ease,
      transform 0.25s ease;
  }

  .project-tech-icon:hover {
    transform: scale(1.1);
  }

  .project-tech-icon--react:hover {
    color: #61dafb;
  }

  .project-tech-icon--ts:hover {
    color: #3178c6;
  }

  .project-tech-icon--node:hover {
    color: #339933;
  }

  .project-tech-icon--docker:hover {
    color: #2496ed;
  }

  .project-tech-icon--mysql:hover {
    color: #4479a1;
  }

  .project-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-family: "Fira Code", monospace;
    font-size: 0.75rem;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.1rem;
    transition:
      border-color 0.25s ease,
      transform 0.25s ease;
  }

  .project-card-link:hover {
    border-color: var(--accent-color);
    transform: translateY(-1px);
  }

  .project-card-link-icon {
    font-size: 0.625rem;
  }

  /* ==========================================================================
     ABOUT SECTION
     ========================================================================== */
  .about-section {
    padding: 9rem 2rem 10rem;
    display: none; /* hidden by default like home */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    width: 100%;
    height: 100vh;
    transition: all 0.3s ease;
  }
  .about-section.section-active {
    display: flex;
  }
  @media (max-width: 768px) {
    .about-section {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }
  }
  .about-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
  }
  .about-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
  }
  @media (min-width: 1024px) {
    .about-title {
      font-size: 2.5rem;
    }
  }
  .about-title-slash {
    color: var(--accent-color);
    margin-right: 0.35rem;
  }
  .about-title-underline {
    width: 6rem;
    height: 0.25rem;
    border-radius: 9999px;
    margin: 0 auto;
    background-color: var(--accent-color);
  }
  .about-layout {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    width: 100%;
    max-width: 72rem;
  }
  @media (min-width: 1024px) {
    .about-layout {
      flex-direction: row;
    }
  }
  .about-column {
    flex: 1;
    min-width: 0;
  }
  .about-subtitle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
  }
  .about-subtitle-icon {
    color: var(--accent-color);
  }
  .about-bio {
    color: rgba(var(--text-color-rgb), 0.8);
    font-weight: 300;
    line-height: 1.7;
    font-size: 1rem;
  }
  .about-bio p + p {
    margin-top: 1rem;
  }
  .about-experiences {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .about-experience-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1.25rem;
    background-color: rgba(var(--text-color-rgb), 0.05);
    border: 1px solid rgba(148, 163, 184, 0.4);
    transition:
      border-color 0.25s ease,
      transform 0.25s ease,
      box-shadow 0.25s ease,
      background-color 0.25s ease;
  }
  .dark .about-experience-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }
  @media (min-width: 1024px) {
    .about-experience-card {
      min-height: 95px;
      align-items: center;
    }
  }
  .about-experience-card:hover {
    border-color: var(--accent-color);
    background-color: rgba(var(--accent-color-rgb), 0.03);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    transform: translateY(-2px);
  }
  .about-experience-icon-wrapper {
    padding: 0.75rem;
    border-radius: 0.9rem;
    background-color: rgba(var(--accent-color-rgb), 0.12);
    color: var(--accent-color);
    transition:
      transform 0.25s ease,
      background-color 0.25s ease;
  }
  .about-experience-card:hover .about-experience-icon-wrapper {
    transform: scale(1.1);
    background-color: rgba(var(--accent-color-rgb), 0.18);
  }
  .about-experience-title {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
  }
  .about-experience-text {
    font-size: 0.875rem;
    color: rgba(var(--text-color-rgb), 0.45);
  }
  .about-link {
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-color: rgba(var(--accent-color-rgb), 0.3);
    text-underline-offset: 0.25rem;
    transition: text-decoration-color 0.25s ease;
  }
  .about-link:hover {
    text-decoration-color: var(--accent-color);
  }
  .about-tech-intro {
    color: rgba(var(--text-color-rgb), 0.8);
    margin-bottom: 2rem;
    font-weight: 300;
  }
  .about-tech-groups {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .about-tech-group-title {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-family: "Fira Code", monospace;
    color: rgba(var(--accent-color-rgb), 0.4);
  }
  .about-tech-group-line {
    flex: 1;
    height: 1px;
    background-color: rgba(var(--accent-color-rgb), 0.1);
  }
  .about-tech-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
  }
  @media (min-width: 640px) {
    .about-tech-grid {
      grid-template-columns: repeat(7, minmax(0, 1fr));
    }
  }
  @media (min-width: 768px) {
    .about-tech-grid {
      grid-template-columns: repeat(9, minmax(0, 1fr));
    }
  }
  @media (min-width: 1024px) {
    .about-tech-grid {
      grid-template-columns: repeat(7, minmax(0, 1fr));
    }
  }
  @media (min-width: 1280px) {
    .about-tech-grid {
      grid-template-columns: repeat(8, minmax(0, 1fr));
    }
  }
  .about-tech-item {
    aspect-ratio: 1 / 1;
    background-color: rgba(var(--text-color-rgb), 0.05);
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(var(--text-color-rgb), 0.4);
    font-size: 1.75rem;
    transition:
      background-color 0.25s ease,
      color 0.25s ease,
      border-color 0.25s ease,
      transform 0.25s ease;
  }
  .dark .about-tech-item {
    background-color: rgba(
      255,
      255,
      255,
      0.05
    ); /* Adjusted from slate-900/70 for better contrast */
    border-color: rgba(255, 255, 255, 0.1);
  }
  .about-tech-item i {
    transition: transform 0.25s ease;
  }
  .about-tech-item:hover i {
    transform: scale(1.1);
  }
  .about-tech-item--figma:hover {
    color: #f24e1e;
    background-color: rgba(242, 78, 30, 0.1);
  }
  .about-tech-item--html:hover {
    color: #e34f26;
    background-color: rgba(227, 79, 38, 0.1);
  }
  .about-tech-item--css:hover {
    color: #1572b6;
    background-color: rgba(21, 114, 182, 0.1);
  }
  .about-tech-item--js:hover {
    color: #f7df1e;
    background-color: rgba(247, 223, 30, 0.1);
  }
  .about-tech-item--ts:hover {
    color: #3178c6;
    background-color: rgba(49, 120, 198, 0.1);
  }
  .about-tech-item--react:hover {
    color: #61dafb;
    background-color: rgba(97, 218, 251, 0.1);
  }
  .about-tech-item--next:hover {
    color: #000000;
    background-color: rgba(226, 232, 240, 1);
  }
  .dark .about-tech-item--next:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
  }
  .about-tech-item--node:hover {
    color: #239120;
    background-color: rgba(35, 145, 32, 0.1);
  }
  .about-tech-item--express:hover {
    color: var(--text-color);
    background-color: rgba(226, 232, 240, 1);
  }
  .dark .about-tech-item--express:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
  }
  .about-tech-item--java:hover {
    color: #007396;
    background-color: rgba(0, 115, 150, 0.1);
  }
  .about-tech-item--spring:hover {
    color: #6db33f;
    background-color: rgba(109, 179, 63, 0.1);
  }
  .about-tech-item--csharp:hover {
    color: #9b4993;
    background-color: rgba(155, 73, 147, 0.1);
  }
  .about-tech-item--python:hover {
    color: #3776ab;
    background-color: rgba(55, 118, 171, 0.1);
  }
  .about-tech-item--mysql:hover {
    color: #00758f;
    background-color: rgba(0, 117, 143, 0.1);
  }
  .about-tech-item--postgres:hover {
    color: #336791;
    background-color: rgba(51, 103, 145, 0.1);
  }
  .about-tech-item--mongo:hover {
    color: #47a248;
    background-color: rgba(71, 162, 72, 0.1);
  }
  .about-tech-item--redis:hover {
    color: #dc382d;
    background-color: rgba(220, 56, 45, 0.1);
  }
  .about-tech-item--git:hover {
    color: #f05032;
    background-color: rgba(240, 80, 50, 0.1);
  }
  .about-tech-item--docker:hover {
    color: #2496ed;
    background-color: rgba(36, 150, 237, 0.1);
  }
  .about-tech-item--rabbit:hover {
    color: #ff6600;
    background-color: rgba(255, 102, 0, 0.1);
  }
  .about-tech-item--aws:hover {
    color: #ff9900;
    background-color: rgba(255, 153, 0, 0.1);
  }
  .about-tech-item--vercel:hover {
    color: var(--text-color);
    background-color: rgba(226, 232, 240, 1);
  }
  .dark .about-tech-item--vercel:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* ==========================================================================
     CONTACT SECTION
     ========================================================================== */
  .contact-section {
    padding: 9rem 2rem 10rem;
    display: none; /* hidden by default like home */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    width: 100%;
    height: 100vh;
    transition: all 0.3s ease;
  }
  .contact-section.section-active {
    display: flex;
  }
  @media (max-width: 768px) {
    .contact-section {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }
  }
  .contact-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
  }
  .contact-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
  }
  @media (min-width: 1024px) {
    .contact-title {
      font-size: 2.5rem;
    }
  }
  .contact-title-slash {
    color: var(--accent-color);
    margin-right: 0.35rem;
  }
  .contact-title-underline {
    width: 6rem;
    height: 0.25rem;
    border-radius: 9999px;
    margin: 0 auto;
    background-color: var(--accent-color);
  }

  .contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    width: 100%;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
  }
  @media (min-width: 768px) {
    .contact-layout {
      max-width: 850px;
    }
  }
  @media (min-width: 1024px) {
    .contact-layout {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      max-width: 56rem;
    }
  }

  .contact-form-card {
    background-color: rgba(var(--bg-color-rgb), 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  }
  .dark .contact-form-card {
    border-color: rgba(100, 116, 139, 0.1);
  }
  @media (min-width: 768px) {
    .contact-form-card {
      padding: 3rem;
      width: 100%;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }
  }
  @media (min-width: 1024px) {
    .contact-form-card {
      padding: 2rem;
      width: auto;
      max-width: none;
      margin-left: 0;
      margin-right: 0;
    }
  }

  .contact-subtitle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
  }
  .contact-subtitle-icon {
    color: var(--accent-color);
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .contact-form-label {
    font-size: 0.8rem;
    font-weight: 600;
    font-family: "Fira Code", monospace;
    color: rgba(var(--text-color-rgb), 1);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-left: 0.25rem;
  }
  .contact-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    font-size: 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid rgba(148, 163, 184, 0.8);
    transition: all 0.25s ease;
  }
  .dark .contact-input {
    border-color: rgba(71, 85, 105, 0.5);
  }
  .contact-input::placeholder {
    color: rgba(var(--text-color-rgb), 0.3);
  }
  .contact-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
  }
  .contact-textarea {
    resize: none;
  }

  .contact-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-weight: 700;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(var(--accent-color-rgb), 0.1);
    width: 65%;
    margin-left: auto;
    margin-right: auto;
  }
  @media (max-width: 380px) {
    .contact-submit {
      width: 85%;
      gap: 0.5rem;
    }
  }
  @media (min-width: 768px) {
    .contact-submit {
      width: 85%;
      max-width: 600px;
    }
  }
  @media (min-width: 1024px) {
    .contact-submit {
      width: 100%;
      margin-left: 0;
    }
  }

  .contact-submit:hover {
    filter: brightness(1.1);
    transform: scale(1.01);
    box-shadow: 0 10px 15px -3px rgba(var(--accent-color-rgb), 0.4);
  }
  .contact-submit:active {
    transform: scale(0.95);
  }
  .contact-submit i {
    transition: transform 0.3s ease;
  }
  .contact-submit:hover i {
    transform: translate(0.25rem, -0.25rem);
  }

  .contact-status {
    display: none;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
  }

  .contact-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    align-items: center;
    text-align: left;
  }
  @media (min-width: 1024px) {
    .contact-info-col {
      align-items: flex-start;
    }
  }

  .contact-info-title {
    font-size: 0.75rem;
    font-family: "Fira Code", monospace;
    color: rgba(var(--accent-color-rgb), 0.7);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    padding-left: 0.25rem;
    text-align: left;
  }

  .contact-info-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
  }
  @media (min-width: 1024px) {
    .contact-info-list {
      align-items: flex-start;
    }
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(var(--text-color-rgb), 0.9);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    transition: transform 0.3s ease;
    width: 100%;
    text-decoration: none;
  }
  @media (max-width: 335px) {
    .contact-item {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 1rem;
    }
  }

  .contact-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--accent-color-rgb), 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    transition:
      transform 0.3s ease,
      background-color 0.3s ease;
  }
  .dark .contact-icon-wrapper {
    border-color: rgba(71, 85, 105, 0.5);
  }
  .contact-item:hover .contact-icon-wrapper {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    transform: scale(1.05);
  }
  .contact-icon {
    font-size: 1.25rem;
    color: rgba(var(--accent-color-rgb), 0.8);
  }

  .contact-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease;
  }
  @media (max-width: 335px) {
    .contact-content {
      align-items: center;
    }
  }
  .contact-item:hover .contact-content {
    transform: translateX(0.5rem);
  }
  @media (max-width: 335px) {
    .contact-item:hover .contact-content {
      transform: translateX(0);
    }
  }

  .contact-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(var(--text-color-rgb), 0.6);
    font-family: "Fira Code", monospace;
    margin-bottom: 0.25rem;
  }
  .contact-value {
    font-weight: 300;
    font-size: 1.125rem;
  }

  /* Accessibility: No Animation Preference */
  @media (prefers-reduced-motion: reduce) {
    .animate-blink,
    .profile-glow,
    .profile-image,
    .quote-box {
      animation: none;
      transition: none;
    }
  }
} /* end @layer components */

/* ==========================================================================
   UTILITIES (Animations, Helpers, Accessibility)
   ========================================================================== */
@layer utilities {
  @keyframes spin-slow {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }

  .animate-spin-slow {
    animation: spin-slow 10s linear infinite;
  }

  @keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

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

  @keyframes fadeInLeft {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translateX(20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes blink {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.5;
    }
  }

  /* Animation Classes */
  .animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
  }
  .animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
  }
  .animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
  }
  .animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
  }
  .animate-blink {
    animation: blink 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  /* Utility Classes */
  .relative {
    position: relative;
  }
  .z-10 {
    z-index: 10;
  }
  .whitespace-nowrap {
    white-space: nowrap;
  }
  .cursor-default {
    cursor: default;
  }
  .text-accent {
    color: var(--accent-color);
  }
  .text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  /* Layout Helpers */
  .space-y-12 {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  /* Delays */
  .delay-100 {
    animation-delay: 100ms;
  }
  .delay-200 {
    animation-delay: 200ms;
  }

  /* Group Hover Selectors */
  .group:hover .profile-decoration-geometric {
    transform: scale(1.1);
  }
  .group:hover .contact-icon {
    transform: scale(1.1);
    color: var(--accent-color);
  }
  .group:hover .contact-value {
    color: var(--accent-color);
  }

  /* Accessibility: Skip Link */
  .skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
    transition: all 0.3s ease;
  }

  .skip-link:focus {
    position: absolute;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    top: 1rem;
    left: 1rem;
    z-index: 50;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-radius: 0.5rem;
    outline: none;
    box-shadow: 0 0 0 2px white;
  }
} /* end @layer utilities */

/* ==========================================================================
   UNLAYERED OVERRIDES (Highest Specificity & Cascade Priority)
   ========================================================================== */
@media (min-width: 1024px) {
  .nav-logo-btn #social-chevron {
    display: none;
  }
}