/* ==========================================================================
   TABLE OF CONTENTS
   ==========================================================================
   1. VARIABLES & THEMES
   2. BASE & TYPOGRAPHY
   3. COMPONENTS
      - Buttons
      - Navbar
      - Hero
      - Badges
      - Quotes
   4. LAYOUT
      - Sidebars
   5. UTILITIES
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES & THEMES
   ========================================================================== */
:root {
  --bg-color: #282c33;
  --primary-color: #c778dd;
  --text-primary: #ffffff;
  --text-secondary: #abb2bf;
}

[data-theme="light"] {
  --bg-color: #f5f5dc;
  --primary-color: #c778dd;
  --text-primary: #282c33;
  --text-secondary: #5c626e;
}

/* ==========================================================================
   2. BASE & TYPOGRAPHY
   ========================================================================== */
body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: "Fira Code", monospace;
  margin: 0; /* Base mobile-first reset */
  padding: 0;
  box-sizing: border-box;
  transition:
    background-color 0.3s ease,
    color 0.3s ease; /* Smooth theme transitions */
}

a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   3. COMPONENTS
   ========================================================================== */
/* Buttons */
.btn-primary-outline {
  border: 1px solid var(--primary-color);
  color: var(--text-primary);
  border-radius: 0%;
  background-color: transparent;
  padding: 8px 16px;
  font-family: "Fira Code", monospace;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secondary-outline {
  border: 1px solid var(--text-secondary);
  color: var(--text-primary);
  border-radius: 0%;
  background-color: transparent;
  padding: 8px 16px;
  font-family: "Fira Code", monospace;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secondary-outline:hover {
  background-color: rgba(171, 178, 191, 0.2);
  color: var(--text-primary);
}

.btn-primary-outline:hover {
  background-color: rgba(199, 120, 221, 0.2);
  color: var(--text-primary);
}

.back-to-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease,
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 576px) {
  .back-to-top-btn {
    right: 16px;
    bottom: 16px;
  }
}

/* Navbar */
.logo {
  filter: invert(1) brightness(2);
  transition: filter 0.3s ease;
}

[data-theme="light"] .logo {
  filter: none;
}

/* Navbar toggler — Bootstrap's default icon is white (invisible on light bg) */
[data-theme="light"] .navbar-toggler {
  border-color: var(--text-primary);
}

[data-theme="light"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23282c33' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-brand span {
  font-weight: 700;
  color: var(--text-primary);
}

.nav-link {
  color: var(--text-secondary) !important;
  transition: color 0.3s ease;
}

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

/* Mobile Menu Override  */
@media (max-width: 991.98px) {
  #navbarContent {
    background-color: var(--bg-color) !important;
  }

  /* Large links per screenshot */
  #navbarContent .navbar-nav .nav-link {
    font-size: 2rem;
    padding: 0.5rem 0;
  }

  /* Inline dropdown for mobile */
  #navbarContent .dropdown-menu {
    position: static;
    float: none;
    border: none;
    background: transparent;
    padding-left: 1rem;
    padding-top: 0;
  }
  #navbarContent .dropdown-item {
    font-size: 1.5rem;
    padding-left: 0;
  }
  .mobile-theme-icon {
    font-size: 2rem !important; /* Matches EN font-weight visually */
  }
}
@media (min-width: 992px) {
  .mobile-theme-icon {
    font-size: 1.25rem; /* Equivalent to fs-5 */
  }
}

/* Hero */
.hero-title {
  font-size: 2rem;
  line-height: 1.4;
}

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

.hero-description {
  line-height: 1.6;
}

.hero-img {
  max-width: 100%;
  /* border-bottom: 1px solid var(--primary-color); */
}

/* Badges */
.status-badge {
  position: relative;
  top: -20px;
  border: 1px solid var(--text-secondary);
  padding: 8px 16px;
  background-color: var(--bg-color);
  width: 95%;
}

.status-dot {
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  display: inline-block;
  vertical-align: middle;
}

/* Quotes */
.quote-text {
  border-color: var(--text-secondary) !important;
  font-size: 1.25rem; /* Base size for mobile */
}

/* Tablet & Desktop sizes for quotes */
@media (min-width: 768px) {
  .quote-text {
    font-size: 1.5rem;
  }
}

.quote-author {
  border-color: var(--text-secondary) !important;
  border-top: none !important;
}

.open-quote {
  position: absolute;
  top: -15px;
  left: 20px;
  background-color: var(--bg-color);
  padding: 0 10px;
  font-size: 1.5rem;
  transition: background-color 0.3s ease;
}

.close-quote {
  position: absolute;
  bottom: -15px;
  right: 20px;
  background-color: var(--bg-color);
  padding: 0 10px;
  font-size: 1.5rem;
  transition: background-color 0.3s ease;
}

/* Works & Section Titles */
.section-title {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/* Project Cards */
.project-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-radius: 0;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(199, 120, 221, 0.1);
  border-color: var(--primary-color) !important;
}

.project-card .card-img-top {
  border-radius: 0;
  background-color: #282c33; /* Placeholder fallback */
}

.card.bg-transparent {
  background-color: var(--bg-color) !important;
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */
.main-content {
  width: 100%;
  position: relative;
}

/* Social Sidebar - Hidden on mobile, shown on desktop
   We use min-width: 992px to complement Bootstrap's lg breakpoint
*/
.social-sidebar {
  display: none; /* Hide firmly by default */
  position: fixed;
  left: 20px;
  top: 0;
  width: 32px;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  background-color: var(--bg-color);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

@media (min-width: 992px) {
  .social-sidebar {
    display: flex; /* Show only on desktop */
  }
  .main-content {
    margin: 0 auto;
  }
}

.sidebar-line {
  width: 2px;
  height: 200px;
  background-color: var(--text-secondary);
  margin-bottom: 10px;
}

.social-icon {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.social-icon:hover {
  color: var(--primary-color);
}
.social-sidebar-box {
  position: fixed;
  left: -50px;
  top: 200px;
  width: 130px;
  /* height: 30px; */
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
}

/* ==========================================================================
   5. UTILITIES
   ========================================================================== */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary-light {
  color: var(--text-secondary);
}

/* ==========================================================================
   6. SKILLS SECTION
   ========================================================================== */

/* Skill category box */

.skill-box {
  border: 1px solid var(--text-secondary);
}

.skill-box-header {
  font-weight: 700;
  color: var(--text-primary);
  padding: 8px 12px;
  border-bottom: 1px solid var(--text-secondary);
}

.skill-box-body {
  padding: 10px 12px;
  color: var(--text-secondary);
  line-height: 1.8;
  word-spacing: 4px;
}

/* Decorative geometric composition */
.skills-decoration {
  position: relative;
  width: 280px;
  height: 260px;
}

/* All decoration items are absolutely positioned; SVG fills the container */
.sd-item {
  position: absolute;
  color: var(--text-secondary); /* SVG currentColor inherits this */
}

.sd-item svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Primary-colored variant (purple accent square) */
.sd-item.sd-primary {
  color: var(--primary-color);
}

/* Size presets */
.sd-dot-grid {
  width: 90px;
  height: 90px;
}
.sd-square {
  width: 80px;
  height: 80px;
}
.sd-square.sd-sm {
  width: 80px;
  height: 80px;
}
.sd-square.sd-xs {
  width: 40px;
  height: 40px;
}

/* Positions */
.sd-top-left {
  top: 0;
  left: -80px;
}
.sd-top-right {
  top: 10px;
  right: 50px;
}
.sd-bottom-left {
  bottom: 40px;
  left: 20px;
}
.sd-bottom-left-inner {
  bottom: 38px;
  left: 20px;
}
.sd-bottom-right {
  bottom: 30px;
  right: 0;
}
.sd-bottom-left-sm {
  bottom: 10px;
  left: -30px;
}

/* About section image wrapper + decorative dot grids */
.about-img {
  border-bottom: 1px solid var(--primary-color);
  z-index: 1;
}

.about-dot-grid {
  position: absolute;

  color: var(--text-secondary);
  z-index: 0;
}

.about-dot-grid svg {
  display: block;
  width: 100%;
  height: 100%;
}

.about-dot-grid--top-right {
  width: 50px;
  height: 90px;
  top: 0;
  right: 0;
}

.about-dot-grid--bottom-left {
  width: 90px;
  height: 90px;
  bottom: -30px;
  left: -50px;
  z-index: 2;
}

.about-page-main {
  position: relative;
  overflow: hidden;
}

.page-eyebrow {
  font-size: 1rem;
  color: var(--text-primary);
}

.about-page-copy {
  max-width: 560px;
}

.about-hero-visual {
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
}

.about-hero-frame {
  position: relative;
  display: inline-block;
  padding: 1rem 1rem 0;
}

.about-hero-frame::before,
.about-hero-frame::after {
  content: "";
  position: absolute;
  border: 1px solid var(--text-secondary);
  pointer-events: none;
}

.about-hero-frame::before {
  width: 110px;
  height: 110px;
  left: -42px;
  bottom: 42px;
}

.about-hero-frame::after {
  width: 130px;
  height: 130px;
  right: -54px;
  top: 34px;
}

.about-page-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  border-bottom: 1px solid var(--primary-color);
}

.about-floating-grid {
  position: absolute;
  color: var(--text-secondary);
  z-index: 0;
}

.about-floating-grid svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about-floating-grid--left {
  width: 72px;
  height: 72px;
  left: -64px;
  top: 80px;
}

.about-floating-grid--right {
  width: 88px;
  height: 88px;
  right: -16px;
  bottom: 70px;
}

.about-pill {
  border: 1px solid var(--text-secondary);
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.01);
  line-height: 1.5;
  transition:
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease;
}

.about-pill:hover {
  color: var(--text-primary);
  border-color: var(--primary-color);
  background-color: rgba(199, 120, 221, 0.08);
  transform: translateY(-2px);
}

.about-page-decoration {
  position: absolute;
  color: var(--text-secondary);
  z-index: -1;
}

.about-page-decoration svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about-page-decoration--top-right {
  width: 88px;
  height: 88px;
  top: 120px;
  right: -20px;
}

.about-page-decoration--mid-left {
  width: 72px;
  height: 72px;
  top: 560px;
  left: -76px;
}

.about-page-decoration--bottom-right {
  width: 120px;
  height: 120px;
  right: -48px;
  bottom: 110px;
}

.about-facts-section {
  position: relative;
}

.about-facts-visual {
  position: relative;
  width: 100%;
  max-width: 360px;
  min-height: 320px;
}

.about-facts-logo {
  position: absolute;
  width: 120px;
  height: auto;
  left: 40px;
  bottom: 30px;
}

.about-facts-shape {
  position: absolute;
  color: var(--text-secondary);
}

.about-facts-shape svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about-facts-shape--grid-top {
  width: 68px;
  height: 68px;
  top: 24px;
  left: 34px;
}

.about-facts-shape--grid-bottom {
  width: 92px;
  height: 92px;
  right: -8px;
  bottom: 8px;
}

.about-facts-shape--square-back {
  width: 84px;
  height: 84px;
  right: 72px;
  top: 96px;
  color: var(--primary-color);
}

.about-facts-shape--square-front {
  width: 58px;
  height: 58px;
  right: 122px;
  top: 146px;
  color: var(--primary-color);
}

@media (max-width: 991.98px) {
  .about-hero-visual {
    max-width: 460px;
  }

  .about-facts-visual {
    max-width: 300px;
    min-height: 260px;
  }

  .about-facts-logo {
    width: 96px;
    right: 40px;
    top: 108px;
  }

  .about-facts-shape--grid-bottom {
    right: 0;
    bottom: 0;
  }

  .about-hero-frame::before,
  .about-hero-frame::after,
  .about-page-decoration {
    display: none;
  }

  .about-floating-grid--left {
    left: -12px;
  }

  .about-floating-grid--right {
    right: -8px;
  }
}

/* Random Shapes */
.random-shape {
  position: absolute;
  z-index: -1;
  color: var(--text-secondary);
}

.random-shape svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Contacts + Footer */
.contacts-text {
  max-width: 520px;
  line-height: 1.8;
}

.contact-form {
  max-width: 100%;
}

.contact-honeypot {
  display: none !important;
}

.contact-input {
  width: 100%;
  border: 1px solid var(--text-secondary);
  background-color: transparent;
  color: var(--text-primary);
  padding: 12px 14px;
  font-family: "Fira Code", monospace;
  outline: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.contact-input::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}

.contact-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

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

.contact-input.is-invalid {
  border-color: #e06c75;
  box-shadow: 0 0 0 1px #e06c75;
}

.contact-submit-btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-form-status {
  min-height: 24px;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-form-status.is-success {
  color: #98c379;
}

.contact-form-status.is-error {
  color: #e06c75;
}

.footer-social-icon {
  color: var(--text-secondary);
  font-size: 1.15rem;
  transition: color 0.3s ease;
}

.footer-social-icon:hover {
  color: var(--primary-color);
}

.site-footer {
  border-top: 1px solid var(--text-secondary);
  margin-top: 40px;
}

.site-footer h5 {
  color: var(--text-primary);
}

.contact-page-main {
  position: relative;
  overflow: hidden;
}

.contact-page-copy {
  max-width: 520px;
}

.contact-page-decoration {
  position: absolute;
  color: var(--text-secondary);
  z-index: -1;
}

.contact-page-decoration svg {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-page-decoration--top-right {
  width: 84px;
  height: 84px;
  top: 110px;
  right: -24px;
}

.contact-page-decoration--mid-left {
  width: 74px;
  height: 74px;
  top: 460px;
  left: -72px;
}

.contact-page-decoration--bottom-right {
  width: 120px;
  height: 120px;
  right: -46px;
  bottom: 130px;
}

.contact-info-card {
  border: 1px solid var(--text-secondary);
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.01);
  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease;
}

.contact-info-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  background-color: rgba(199, 120, 221, 0.06);
}

.contact-info-card__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.contact-info-card__title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.contact-info-card__body {
  color: var(--text-secondary);
  display: grid;
  gap: 0.5rem;
  line-height: 1.7;
}

.all-media-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.all-media-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--text-secondary);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.01);
  width: fit-content;
  max-width: 100%;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease;
}

.all-media-link:hover {
  color: var(--text-primary);
  border-color: var(--primary-color);
  background-color: rgba(199, 120, 221, 0.06);
  transform: translateY(-2px);
}

.all-media-link__icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}

.all-media-link__label {
  color: var(--text-primary);
  font-weight: 700;
  white-space: nowrap;
}

.all-media-link__value {
  font-size: 0.92rem;
  word-break: break-word;
}

.hire-platforms-card {
  padding: 0 1.25rem 1.25rem 0;
}

.hire-platforms-card__title {
  font-size: 1rem;
  margin: 0 0 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--text-secondary);
  width: fit-content;
}

.hire-platforms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  padding-top: 0.75rem;
  max-height: 300px;
  overflow-y: auto;
}

.hire-platform-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--text-secondary);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.01);
  width: fit-content;
  max-width: 100%;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease;
}

.hire-platform-link:hover {
  color: var(--text-primary);
  border-color: var(--primary-color);
  background-color: rgba(199, 120, 221, 0.06);
  transform: translateY(-2px);
}

.hire-platform-link__main {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.hire-platform-link__badge {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.hire-platform-link__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 991.98px) {
  .contact-page-decoration {
    display: none;
  }
}
