/*!
 * Portfolio – Hasib Kamal Chowdhury
 * Modern Redesign v3 — 2026
 */

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --primary:         #4F46E5;
  --primary-dark:    #4338CA;
  --primary-light:   #EEF2FF;
  --primary-muted:   rgba(79, 70, 229, 0.07);

  --sidebar-bg:      #0B1120;
  --sidebar-alt:     #111827;
  --sidebar-text:    #8B9EC4;
  --sidebar-hover:   #E2E8F0;
  --sidebar-border:  rgba(255, 255, 255, 0.06);

  --body-bg:         #F1F5F9;
  --surface:         #FFFFFF;
  --surface-alt:     #F8FAFC;

  --text-heading:    #0F172A;
  --text-body:       #475569;
  --text-muted:      #94A3B8;

  --border:          #E2E8F0;
  --border-mid:      #CBD5E1;

  --shadow-xs:  0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm:  0 1px 6px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:  0 4px 18px rgba(15, 23, 42, 0.09), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg:  0 10px 32px rgba(15, 23, 42, 0.11), 0 4px 8px rgba(15, 23, 42, 0.05);

  --r-sm:  6px;
  --r:     10px;
  --r-lg:  16px;
  --r-xl:  999px;

  --ease:        0.18s ease;
  --ease-spring: 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
}

@media (min-width: 992px) {
  html { scroll-padding-top: 0; }
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--body-bg);
  color: var(--text-body);
  padding-top: 56px;
  font-size: 0.9rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 992px) {
  body {
    padding-top: 0;
    padding-left: 17rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar              { width: 4px; }
::-webkit-scrollbar-track        { background: var(--body-bg); }
::-webkit-scrollbar-thumb        { background: var(--border-mid); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover  { background: var(--primary); }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover, a:focus, a:active {
  color: var(--primary-dark);
  text-decoration: none;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Saira Extra Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-heading);
  line-height: 1.1;
}

h1 {
  font-size: 4.75rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

h2 {
  font-size: 2.4rem;
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 2.5rem !important;
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.1em;
  width: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(79, 70, 229, 0.15) 100%);
  border-radius: 4px;
}

h3 { font-size: 1.25rem; letter-spacing: 0.01em; }
h4 { font-size: 1.05rem; }
h5 { font-size: 0.92rem; }
h6 { font-size: 0.82rem; color: var(--text-muted); }

.subheading {
  font-family: 'Saira Extra Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--primary);
}

/* ============================================================
   Sidebar Navigation
   ============================================================ */
#sideNav {
  background: linear-gradient(170deg, #080E1C 0%, var(--sidebar-bg) 45%, var(--sidebar-alt) 100%) !important;
  border-right: 1px solid var(--sidebar-border);
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.25);
}

#sideNav .navbar-brand strong {
  color: #CBD5E1;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

#sideNav .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-sm);
  padding: 0.3rem 0.55rem;
}

#sideNav .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='rgba%28255,255,255,0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#sideNav .navbar-nav .nav-item .nav-link {
  color: var(--sidebar-text) !important;
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
  font-size: 0.71rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.58rem 1.5rem;
  border-left: 2px solid transparent;
  text-align: center;
  transition: all var(--ease);
}

#sideNav .navbar-nav .nav-item .nav-link:hover {
  color: var(--sidebar-hover) !important;
  border-left-color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
  padding-left: 1.5rem;
}

/* Resume download button */
.btn-resume {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff !important;
  border: none;
  border-radius: var(--r-xl);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.55rem 1.4rem;
  margin: 0.5rem auto;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35), 0 1px 3px rgba(0,0,0,0.2);
  transition: all var(--ease-spring);
}

.btn-resume:hover {
  background: linear-gradient(135deg, #5B52F0 0%, var(--primary) 100%);
  color: #fff !important;
  box-shadow: 0 6px 22px rgba(79, 70, 229, 0.5), 0 2px 6px rgba(0,0,0,0.2);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-resume i {
  font-size: 0.78rem;
  opacity: 0.9;
}

@media (min-width: 992px) {
  #sideNav {
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 17rem;
    height: 100vh;
  }

  #sideNav .navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto auto 0;
    padding: 2.5rem 1rem 1.5rem;
  }

  #sideNav .navbar-brand .img-profile {
    max-width: 9rem;
    max-height: 9rem;
    border-radius: 50%;
    border: none;
    outline: 3px solid rgba(79, 70, 229, 0.45);
    outline-offset: 5px;
    box-shadow:
      0 0 0 10px rgba(79, 70, 229, 0.07),
      0 18px 44px rgba(0, 0, 0, 0.45);
    transition: outline-color var(--ease), box-shadow var(--ease);
    display: block;
  }

  #sideNav .navbar-brand .img-profile:hover {
    outline-color: var(--primary);
    box-shadow:
      0 0 0 12px rgba(79, 70, 229, 0.12),
      0 18px 44px rgba(0, 0, 0, 0.45);
  }

  #sideNav .navbar-collapse {
    display: flex;
    align-items: flex-start;
    flex-grow: 0;
    width: 100%;
    margin-bottom: auto;
    padding: 0.75rem 0 1rem;
  }

  #sideNav .navbar-collapse .navbar-nav {
    flex-direction: column;
    width: 100%;
  }

  #sideNav .navbar-collapse .navbar-nav .nav-item { display: block; }

  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link {
    display: block;
    text-align: center;
  }

  #sideNav .navbar-collapse .navbar-nav .nav-item:last-child {
    padding: 0.75rem 0 0;
    text-align: center;
  }
}

/* ============================================================
   Sections
   ============================================================ */
section.resume-section {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 5rem 4rem !important;
}

section.resume-section:nth-of-type(even) {
  background-color: var(--surface-alt);
}

@media (min-width: 768px) {
  section.resume-section .resume-item .resume-date {
    min-width: 13rem;
  }
}

@media (min-width: 992px) {
  section.resume-section {
    padding: 5.5rem 6rem !important;
  }
}

/* ============================================================
   About Section
   ============================================================ */
#about h1 {
  color: var(--text-heading);
  line-height: 0.95;
  margin-bottom: 0.5rem;
}

#about h1 .text-primary {
  color: var(--primary) !important;
}

/* Role + company row */
.about-role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.about-role-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-body);
  letter-spacing: 0;
}

.about-role-sep {
  color: var(--border-mid);
  font-size: 1rem;
}

.about-role-company {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--ease);
}

.about-role-company:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Meta info row */
.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.about-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.about-meta-item i {
  color: var(--primary);
  font-size: 0.76rem;
  width: 0.9rem;
  text-align: center;
}

/* Bio */
.lead-bio {
  font-size: 0.93rem;
  color: var(--text-body);
  line-height: 1.88;
}

.lead-bio p {
  margin-bottom: 0.9rem;
}

.lead-bio p:last-child {
  margin-bottom: 0;
}

/* Social icon buttons */
.about-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-muted);
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--ease-spring);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.32);
  text-decoration: none;
}

/* ============================================================
   Timeline — Experience & Education Items
   ============================================================ */
.resume-item {
  position: relative;
  padding: 1.1rem 1rem 1.1rem 1.75rem;
  border-left: 3px solid var(--border);
  border-radius: 0 var(--r) var(--r) 0;
  transition: all var(--ease);
}

.resume-item:hover {
  border-left-color: var(--primary);
  background: var(--primary-muted);
}

.resume-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 1.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--primary);
  transition: transform var(--ease-spring);
  z-index: 1;
}

section.resume-section:nth-of-type(even) .resume-item::before {
  border-color: var(--surface-alt);
}

.resume-item:hover::before {
  transform: scale(1.5);
}

.resume-item h3 { color: var(--text-heading); }

.resume-item h4 {
  font-size: 1rem;
  color: var(--text-muted);
}

.resume-date span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Project links inside experience */
.resume-item ul {
  margin-top: 0.5rem;
}

.resume-item ul li {
  margin-bottom: 0.25rem;
}

.resume-item ul li a {
  color: var(--primary);
  font-size: 0.86rem;
  transition: all var(--ease);
}

.resume-item ul li a:hover {
  color: var(--primary-dark);
  padding-left: 4px;
}

/* ============================================================
   Skills — Grid Cards + Pill Tags
   ============================================================ */
.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--ease);
}

section.resume-section:nth-of-type(even) .skill-card {
  background: var(--surface);
}

.skill-card:hover {
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  background: var(--primary-light);
  border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}

.skill-card-header i {
  color: var(--primary);
  font-size: 0.95rem;
  width: 1.2rem;
  text-align: center;
  flex-shrink: 0;
}

.skill-card-header span {
  font-family: 'Saira Extra Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
}

.skill-card-body {
  padding: 0.9rem 1rem;
}

.skill-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: var(--r-xl);
  padding: 0.25rem 0.88rem;
  font-size: 0.77rem;
  font-weight: 500;
  font-family: 'Open Sans', sans-serif;
  margin: 0.2rem 0.1rem;
  cursor: default;
  line-height: 1.5;
  transition: all var(--ease-spring);
}

.skill-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

/* ============================================================
   Career Highlights Strip
   ============================================================ */
.career-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(135deg, #0B1120 0%, #1a1654 100%);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.highlight-item {
  padding: 1.75rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  transition: background var(--ease);
}

.highlight-item:last-child { border-right: none; }

.highlight-item:hover {
  background: rgba(79, 70, 229, 0.2);
}

.highlight-number {
  display: block;
  font-family: 'Saira Extra Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.highlight-label {
  display: block;
  font-size: 0.63rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 0.45rem;
}

/* ============================================================
   Award Cards
   ============================================================ */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.award-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}

.award-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.award-card-img-wrap {
  background: #EEF2FF;
  padding: 1.25rem 1.25rem 0;
}

.award-card-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r) var(--r) 0 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}


.award-card-body {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem 1.25rem;
  border-top: 3px solid var(--primary);
  background: #EEF2FF;
}

.award-card-icon {
  width: 2.6rem;
  height: 2.6rem;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(217,119,6,0.2);
}

.award-card-icon i { font-size: 1.1rem; color: #D97706; }

.award-card-info { flex: 1; }

.award-title {
  font-family: 'Saira Extra Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-heading);
  line-height: 1.1;
}

.award-org {
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.25rem;
}

.award-meta {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

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

@media (max-width: 575px) {
  .award-card-body { padding: 0.9rem 1rem 1rem; }
  .award-title { font-size: 1.15rem; }
}

/* ============================================================
   Badges & Buttons
   ============================================================ */
.badge-dark {
  background: var(--primary) !important;
  border-radius: var(--r-xl);
  padding: 0.28rem 0.75rem;
  font-weight: 500;
  font-size: 0.71rem;
  letter-spacing: 0.04em;
  transition: all var(--ease);
}

.badge-dark:hover {
  background: var(--primary-dark) !important;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3);
}

/* ============================================================
   Contact Section
   ============================================================ */
#contact .fa-ul .fa-li {
  color: var(--primary);
}

#contact .fa-ul li {
  padding: 0.35rem 0;
  font-size: 0.92rem;
}

/* ============================================================
   Bootstrap Overrides
   ============================================================ */
.bg-primary    { background-color: var(--sidebar-bg) !important; }
.text-primary  { color: var(--primary) !important; }
.text-secondary { color: var(--text-muted) !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
  body { padding-top: 56px; }
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2rem; padding-left: 0.85rem; }
  section.resume-section { padding: 3.5rem 2rem !important; }
}

@media (max-width: 767px) {
  .resume-item { padding-left: 1.25rem; }
}

@media (max-width: 575px) {
  h1  { font-size: 2.5rem; }
  h2  { font-size: 1.75rem; }
  section.resume-section { padding: 2.5rem 1.25rem !important; }
  .skill-tag { font-size: 0.73rem; padding: 0.2rem 0.7rem; }
  .list-social-icons .fa-lg { font-size: 1.3rem; }
}
