/* =============================================================
   custom.css — Voidhyr Personal Website
   Bootstrap 5.3.8 compatibility fixes:
     1. :root — --bs-* color overrides (bg-secondary, bg-primary)
     2. .btn-primary — green instead of Bootstrap blue
     3. .form-control:focus — green border
     4. Skills use .skill-track / .skill-bar (renamed in HTML)
   Bug fix: duplicate .reveal-on-scroll removed
============================================================= */

/* -------------------------------------------------------------
   BOOTSTRAP 5.3.8 — BRAND COLOR OVERRIDES
   bg-secondary, bg-primary, btn-primary all read these vars
------------------------------------------------------------- */
:root {
  --bs-primary:         #1abc9c;
  --bs-primary-rgb:     26, 188, 156;
  --bs-secondary:       #2c3e50;
  --bs-secondary-rgb:   44, 62, 80;
}

.btn-primary {
  --bs-btn-bg:                #1abc9c;
  --bs-btn-border-color:      #1abc9c;
  --bs-btn-hover-bg:          #14a085;
  --bs-btn-hover-border-color:#14a085;
  --bs-btn-active-bg:         #14a085;
  --bs-btn-color:             #fff;
  --bs-btn-hover-color:       #fff;
  --bs-btn-active-color:      #fff;
}

.form-control:focus {
  border-color: #1abc9c;
  box-shadow: none;
}


/* -------------------------------------------------------------
   BASE
------------------------------------------------------------- */
html {
  height: 100%;
  scroll-padding-top: calc(4.5rem - 1px);
}

.page-section {
  padding: 6rem 0;
}

.page-section .page-section-heading {
  font-size: 2.25rem !important;
  line-height: 2rem !important;
  font-weight: 700 !important;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

@media (min-width: 992px) {
  .page-section .page-section-heading {
    font-size: 3rem !important;
    line-height: 2.5rem !important;
  }
}


/* -------------------------------------------------------------
   DIVIDER
------------------------------------------------------------- */
.divider-custom {
  margin: 1.25rem 0 1.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.divider-custom .divider-custom-line {
  width: 100%;
  max-width: 7rem;
  height: 0.25rem;
  background-color: #2c3e50;
  border-radius: 1rem;
  border-color: #2c3e50;
}

.divider-custom .divider-custom-line:first-child {
  margin-right: 1rem;
}

.divider-custom .divider-custom-line:last-child {
  margin-left: 1rem;
}

.divider-custom .divider-custom-icon {
  color: #2c3e50;
  font-size: 2rem;
}

.divider-custom.divider-light .divider-custom-line {
  background-color: #fff;
}

.divider-custom.divider-light .divider-custom-icon {
  color: #fff;
}


/* -------------------------------------------------------------
   BUTTONS
------------------------------------------------------------- */
.btn-xl {
  padding: 1rem 1.75rem;
  font-size: 1.25rem;
}

.btn-social {
  border-radius: 100%;
  display: inline-flex;
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.25rem;
  justify-content: center;
  align-items: center;
  border-width: 2px !important;
}


/* -------------------------------------------------------------
   NAVBAR
------------------------------------------------------------- */
#mainNav {
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 700;
}

#mainNav .navbar-brand {
  color: #fff;
}

#mainNav .navbar-nav {
  margin-top: 1rem;
}

#mainNav .navbar-nav li.nav-item a.nav-link {
  color: #fff;
}

#mainNav .navbar-nav li.nav-item a.nav-link:hover {
  color: #1abc9c;
}

#mainNav .navbar-nav li.nav-item a.nav-link:active,
#mainNav .navbar-nav li.nav-item a.nav-link:focus {
  color: #fff;
}

#mainNav .navbar-nav li.nav-item a.nav-link.active {
  color: #1abc9c;
}

#mainNav .navbar-toggler {
  font-size: 80%;
  padding: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-width: 2px;
}

@media (min-width: 992px) {
  #mainNav {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    transition: padding-top 0.3s, padding-bottom 0.3s;
  }

  #mainNav .navbar-brand {
    font-size: 1.75em;
    transition: font-size 0.3s;
  }

  #mainNav .navbar-nav {
    margin-top: 0;
  }

  #mainNav .navbar-nav>li.nav-item>a.nav-link.active {
    color: #fff;
    background: #1abc9c;
  }

  #mainNav .navbar-nav>li.nav-item>a.nav-link.active:active,
  #mainNav .navbar-nav>li.nav-item>a.nav-link.active:focus,
  #mainNav .navbar-nav>li.nav-item>a.nav-link.active:hover {
    color: #fff;
    background: #1abc9c;
  }

  #mainNav.navbar-shrink {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  #mainNav.navbar-shrink .navbar-brand {
    font-size: 1.5em;
  }
}


/* -------------------------------------------------------------
   FORM
------------------------------------------------------------- */
.form-floating input.form-control,
.form-floating textarea.form-control {
  font-size: 1.5rem;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-radius: 0;
  border-width: 1px;
}

.form-floating input.form-control:focus,
.form-floating textarea.form-control:focus {
  box-shadow: none;
}

.form-floating label {
  font-size: 1.5rem;
  color: #6c757d;
}


/* -------------------------------------------------------------
   PORTFOLIO
------------------------------------------------------------- */
.portfolio .portfolio-item {
  cursor: pointer;
  position: relative;
  display: block;
  max-width: 25rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.portfolio .portfolio-item .portfolio-item-caption {
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.2s ease-in-out;
  opacity: 0;
  background-color: rgba(26, 188, 156, 0.9);
}

.portfolio .portfolio-item .portfolio-item-caption:hover {
  opacity: 1;
}

.portfolio .portfolio-item .portfolio-item-caption .portfolio-item-caption-content {
  font-size: 1.5rem;
}

.portfolio-modal .btn-close {
  color: #1abc9c;
  font-size: 2rem;
  padding: 1rem;
}

.portfolio-modal .portfolio-modal-title {
  font-size: 2.25rem;
  line-height: 2rem;
}

@media (min-width: 992px) {
  .portfolio-modal .portfolio-modal-title {
    font-size: 3rem;
    line-height: 2.5rem;
  }
}


/* -------------------------------------------------------------
   FOOTER
------------------------------------------------------------- */
.footer {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: #2c3e50;
  color: #fff;
}

.footer h4 {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.copyright {
  background-color: #1a252f;
}


/* -------------------------------------------------------------
   SERVICES (legacy icon-box)
------------------------------------------------------------- */
.services .icon-box {
  text-align: center;
  background: rgba(204, 204, 204, 0.1);
  padding: 80px 20px;
  transition: all ease-in-out 0.3s;
}

.services .icon-box .icon {
  margin: 0 auto;
  width: 64px;
  height: 64px;
  background: #18d26e;
  border-radius: 5px;
  transition: all .3s ease-out 0s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transform-style: preserve-3d;
}

.services .icon-box .icon i {
  color: #fff;
  font-size: 28px;
}

.services .icon-box .icon::before {
  position: absolute;
  content: '';
  left: -8px;
  top: -8px;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  transition: all .3s ease-out 0s;
  transform: translateZ(-1px);
}

.services .icon-box h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 24px;
}

.services .icon-box h4 a {
  color: #fff;
}

.services .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .icon-box:hover {
  background: #18d26e;
  border-color: #18d26e;
}

.services .icon-box:hover .icon {
  background: #fff;
}

.services .icon-box:hover .icon i {
  color: #18d26e;
}

.services .icon-box:hover .icon::before {
  background: #35e888;
}

.services .icon-box:hover h4 a,
.services .icon-box:hover p {
  color: #fff;
}


/* -------------------------------------------------------------
   SECTION TITLE
------------------------------------------------------------- */
.section-title h2 {
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  line-height: 1px;
  margin: 0 0 20px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaaaaa;
  font-family: "Poppins", sans-serif;
}

.section-title h2::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: #4ceb95;
  margin: 4px 10px;
}

.section-title p {
  margin: -15px 0 15px 0 !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-family: "Poppins", sans-serif !important;
  color: #fff !important;
}


/* -------------------------------------------------------------
   SKILLS
   HTML uses .skill-track and .skill-bar (not Bootstrap classes)
   so no conflict with Bootstrap 5.3.8 at all. Original values
   preserved exactly, green color + glow as requested.
------------------------------------------------------------- */
.skills .progress {
  height: 60px;
  display: block !important;
  background: none !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.skills .progress .skill {
  padding: 10px 0;
  margin: 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  color: #fff;
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
}

.skills .progress-bar-wrap {
  background: rgba(255, 255, 255, 0.2);
  height: 10px;
  border-radius: 0;
  overflow: hidden;
}

/* Full original progress-bar style — gradient + glow animation */
.skills .progress-bar {
  display: block !important;
  flex: none !important;
  width: 0%;
  height: 10px !important;
  border-radius: 0 !important;
  background-image: linear-gradient(90deg, #0f766e, #22c55e, #1abc9c) !important;
  background-size: 200% 100% !important;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0) !important;
  transition: width 6s ease !important;
}

.skills .progress-bar.is-animating {
  animation: skillGlow 3s ease-in-out infinite !important;
}

@keyframes skillGlow {
  0%   { background-position: 0% 50%;   box-shadow: 0 0 4px  rgba(34, 197, 94, 0.4); }
  50%  { background-position: 100% 50%; box-shadow: 0 0 14px rgba(34, 197, 94, 0.9); }
  100% { background-position: 0% 50%;   box-shadow: 0 0 4px  rgba(34, 197, 94, 0.4); }
}


/* -------------------------------------------------------------
   ABOUT
------------------------------------------------------------- */
.about-photo {
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.about-right-panel {
  color: #f9f9f9;
}

.about-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
}

.about-tagline {
  font-size: 0.95rem;
  opacity: 0.85;
}

.about-list li {
  margin-bottom: 0.4rem;
}


/* -------------------------------------------------------------
   FREELANCE BADGE
------------------------------------------------------------- */
.freelance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.freelance-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}


/* -------------------------------------------------------------
   TECH PILLS
------------------------------------------------------------- */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-pill {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, border-color 0.18s ease;
}

.tech-pill:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  background-color: rgba(0, 0, 0, 0.18);
  border-color: #fff;
}


/* -------------------------------------------------------------
   SCROLL REVEAL
   Duplicate removed — first block kept exactly as original.
------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* -------------------------------------------------------------
   INTEREST CARDS
------------------------------------------------------------- */
.interest-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition:
    transform .3s ease,
    box-shadow .3s ease,
    background .3s ease;
}

.interest-card:hover {
  transform: translateY(-10px) scale(1.05);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
}

.interest-card h3 {
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}


/* -------------------------------------------------------------
   MASTHEAD / HERO
------------------------------------------------------------- */
.masthead {
  background: #18C4A6 !important;
  padding-top: calc(6rem + 74px);
  padding-bottom: 6rem;
  text-align: center;
  animation: heroFadeUp .9s ease-out both;
}

.masthead .masthead-avatar {
  width: 15rem;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  transition: transform .35s ease, box-shadow .35s ease;
}

.masthead .masthead-avatar:hover {
  transform: scale(1.035);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}

.masthead .masthead-heading {
  font-size: 2.75rem;
  line-height: 2.75rem;
  font-weight: 700;
  margin-top: .8rem;
  letter-spacing: 1px;
}

.masthead .masthead-subheading {
  font-size: 1.25rem;
  opacity: .9;
  max-width: 550px;
  margin-inline: auto;
}

@media (min-width: 992px) {
  .masthead {
    padding-top: calc(6rem + 104px);
    padding-bottom: 6rem;
  }

  .masthead .masthead-heading {
    font-size: 4rem;
    line-height: 3.5rem;
  }

  .masthead .masthead-subheading {
    font-size: 1.5rem;
  }
}

.hero-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 14px;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(0, 0, 0, .14);
}

.hero-quote-box {
  margin-top: .8rem;
  padding: .7rem 1.2rem;
  max-width: 640px;
  margin-inline: auto;
  background: rgba(0, 0, 0, .14);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
}

#quotes {
  font-size: .9rem;
  font-weight: 700;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  opacity: .95;
  margin-bottom: .3rem;
}

#quotes-name {
  font-size: .78rem;
  font-weight: 600;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  opacity: .85;
}

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


/* -------------------------------------------------------------
   PROJECTS
------------------------------------------------------------- */
.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(26, 188, 156, 0.25);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(26, 188, 156, 0.2);
  border-color: #1abc9c;
}

.project-card.featured {
  border-left: 4px solid #1abc9c;
}

.project-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-icon {
  font-size: 2rem;
  color: #1abc9c;
  line-height: 1;
}

.project-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 2px 10px;
  border-radius: 20px;
  margin-right: 0.5rem;
}

.project-status.in-progress {
  background: rgba(26, 188, 156, 0.15);
  color: #1abc9c;
  border: 1px solid rgba(26, 188, 156, 0.4);
}

.project-status.article {
  background: rgba(91, 141, 255, 0.15);
  color: #7aa2ff;
  border: 1px solid rgba(91, 141, 255, 0.4);
}

.project-type {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

.project-title {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tag {
  background: rgba(26, 188, 156, 0.1);
  color: #1abc9c;
  border: 1px solid rgba(26, 188, 156, 0.3);
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.project-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: #1abc9c;
}


/* -------------------------------------------------------------
   WORK TABS
------------------------------------------------------------- */
.work-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.work-tab {
  background: transparent;
  border: 1px solid rgba(26, 188, 156, 0.3);
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 28px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.work-tab:hover {
  border-color: #1abc9c;
  color: #1abc9c;
}

.work-tab.active {
  background: #1abc9c;
  border-color: #1abc9c;
  color: #fff;
}

.work-panel {
  display: none;
}

.work-panel.active {
  display: block;
  min-height: 420px;
}

.hidden-item {
  display: none;
}

.btn-show-more {
  background: transparent;
  border: 1px solid rgba(26, 188, 156, 0.4);
  color: #1abc9c;
  padding: 8px 32px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-show-more:hover {
  background: #1abc9c;
  color: #fff;
}


/* -------------------------------------------------------------
   FOOTER SOCIAL
------------------------------------------------------------- */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.45rem;
}

.footer-social .btn-social {
  width: 2.7rem;
  height: 2.7rem;
  font-size: 1.05rem;
  flex-shrink: 0;
}


/* -------------------------------------------------------------
   ARTICLE LIST
------------------------------------------------------------- */
.article-list {
  padding: 0.5rem 0;
}

.article-item {
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-item:last-child {
  border-bottom: none;
}

.article-date {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.article-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1abc9c;
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 0.55rem;
  transition: color 0.2s ease;
}

.article-title:hover {
  color: #14a085;
  text-decoration: underline;
}

.article-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin-bottom: 0.6rem;
}

.article-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.03em;
}

.article-meta i {
  margin-right: 0.3rem;
}


/* -------------------------------------------------------------
   SERVICE CARDS
------------------------------------------------------------- */
.service-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(26, 188, 156, 0.25);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: background 0.3s ease,
              border-color 0.3s ease,
              transform 0.3s ease,
              box-shadow 0.3s ease;
}

.service-card:hover {
  background: #1abc9c;
  border-color: #1abc9c;
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(26, 188, 156, 0.35);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(26, 188, 156, 0.12);
  border: 1px solid rgba(26, 188, 156, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.service-icon i {
  font-size: 1.75rem;
  color: #1abc9c;
  transition: color 0.3s ease;
}

.service-card:hover .service-icon {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.service-card:hover .service-icon i {
  color: #fff;
}

.service-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.service-card:hover h4 {
  color: #fff;
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}
