/* Content lists (Architecture & Technology, Engineering Leadership) - single column */
#about ul {
  grid-template-columns: 1fr;
}

/* Skills/Core Competencies - two columns */
#about ul.skills-list {
  grid-template-columns: repeat(2, 1fr);
  max-width: 100%;
}

/* Certification badges */
.cert-badges {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.cert-badge {
  width: 120px;
  height: auto;
  transition: transform 0.2s ease;
}

.cert-badge:hover {
  transform: scale(1.05);
}

/* Accordion experience layout */
#experience .accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: var(--text-secondary-color);
}

#experience .accordion-item {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--text-secondary-color);
}

#experience .accordion-item:last-child {
  border-bottom: none;
}

#experience .accordion-button {
  background-color: transparent;
  box-shadow: none;
  padding: 1.25rem 0;
}

#experience .accordion-button:not(.collapsed) {
  background-color: transparent;
  color: var(--text-color);
}

#experience .accordion-button:focus {
  box-shadow: none;
}

#experience .accordion-button::after {
  margin-left: 1rem;
  flex-shrink: 0;
}

#experience .accordion-header-content {
  flex: 1;
}

#experience .company-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#experience .company-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
}

#experience a.company-name {
  color: var(--text-link-color);
  text-decoration: none;
}

#experience a.company-name:hover {
  text-decoration: underline;
}

#experience .company-dates {
  font-size: 0.9rem;
  opacity: 0.6;
  white-space: nowrap;
}

#experience .company-summary {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 0.35rem;
  line-height: 1.4;
}

#experience .accordion-body {
  padding: 0 0 1.5rem 0;
}

#experience .experience-role {
  padding-left: 1rem;
  border-left: 2px solid var(--primary-color);
}

#experience .role-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

#experience .role-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
}

#experience .role-date {
  font-size: 0.85rem;
  opacity: 0.6;
  white-space: nowrap;
}

#experience .role-content {
  opacity: 0.85;
  line-height: 1.6;
}

#experience .role-content ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 0;
}

#experience .role-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.5rem;
}

#experience .role-content ul li::before {
  content: "▹";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

/* Wider layout */
.container {
  max-width: 1400px !important;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1320px !important;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1400px !important;
  }
}

/* Wider content sections */
#about .row,
#experience .row,
#education .row,
#achievements .row,
#contact .row {
  max-width: 1100px;
  margin: 0 auto;
}

/* Scroll indicator - fixed to bottom of viewport, hide on short screens */
.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  transition: opacity 0.3s ease;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Hide scroll indicator on short screens to prevent overlap */
@media (max-height: 900px) {
  .scroll-indicator {
    display: none;
  }
}

/* Also hide on medium height screens to be safe */
@media (min-height: 900px) and (max-height: 1100px) {
  .scroll-indicator {
    bottom: 60px;
  }
}

.scroll-indicator a {
  display: block;
  width: 40px;
  height: 40px;
  text-decoration: none;
}

.scroll-indicator .chevron {
  position: absolute;
  width: 28px;
  height: 8px;
  opacity: 0;
  transform: scale3d(0.5, 0.5, 0.5);
  animation: scroll-indicator 3s ease-out infinite;
}

.scroll-indicator .chevron:first-child {
  animation-delay: 0s;
}

.scroll-indicator .chevron:nth-child(2) {
  animation-delay: 0.15s;
}

.scroll-indicator .chevron:before,
.scroll-indicator .chevron:after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 51%;
  background: #007bff;
  border-radius: 2px;
}

.scroll-indicator .chevron:before {
  left: 0;
  transform: skewY(30deg);
}

.scroll-indicator .chevron:after {
  right: 0;
  transform: skewY(-30deg);
}

@keyframes scroll-indicator {
  0% {
    opacity: 0;
    transform: translate3d(0, -16px, 0) scale3d(0.7, 0.7, 0.7);
  }
  50% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale3d(0.7, 0.7, 0.7);
  }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Fix 1: Add proper focus-visible styles */
#theme-toggle:focus-visible {
  outline: 2px solid var(--primary-color) !important;
  outline-offset: 2px;
}

#hero a.btn:focus-visible {
  box-shadow: 0 0 0 3px var(--primary-color) !important;
  outline: 2px solid var(--primary-color) !important;
  outline-offset: 2px;
}

#contact .btn:focus-visible {
  box-shadow: 0 0 0 3px var(--primary-color) !important;
  outline: 2px solid var(--primary-color) !important;
  outline-offset: 2px;
}

#experience .accordion-button:focus-visible {
  box-shadow: 0 0 0 3px var(--primary-color) !important;
  outline: 2px solid var(--primary-color) !important;
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Fix 2: Increase hero subtitle opacity for better visibility + make smaller to fit one line */
#hero h2 {
  opacity: 0.7 !important;
  font-size: 1.5rem !important;
  font-weight: 500 !important;
}

/* On smaller screens, reduce even more */
@media (max-width: 768px) {
  #hero h2 {
    font-size: 1.25rem !important;
  }
}

/* Fix 5: Ensure 44x44px minimum touch targets for social icons */
#hero a.btn.social-icon {
  padding: 0.85rem !important;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 10000;
  font-weight: 500;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

/* ============================================
   PHASE 1: MODERN BUTTONS & GRADIENTS
   ============================================ */

/* Modern filled buttons - solid color, no gradient */
#hero a.btn:not(.social-icon) {
    background: var(--primary-color);
    color: white !important;
    border: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

#hero a.btn:not(.social-icon):hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* Social icons - fill on hover */
#hero a.btn.social-icon:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    transform: scale(1.05);
}

/* Removed gradient from hero name - keep it clean */

/* Contact button */
#contact .btn {
    background: var(--primary-color) !important;
    color: white !important;
    border: none;
}

#contact .btn:hover {
    background: var(--accent-color) !important;
}

/* ============================================
   PHASE 2: VISUAL REFINEMENT
   ============================================ */

/* Replace heavy corporate shadows with light modern ones */
#hero .image img,
#about .image img {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

#education .card,
#experience .accordion {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

#education .card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

/* Tighter, more energetic spacing - reduced hero height */
#hero {
    min-height: auto !important;
    padding-top: 6rem !important;
    padding-bottom: 4rem !important;
    line-height: 1.65 !important;
}

#hero p {
    margin: 16px 0 0 !important;
    line-height: 1.6 !important;
}

#hero a.btn {
    margin-top: 32px !important;
}

#about .content {
    line-height: 1.6 !important;
}

#education .card .card-body {
    padding: 1.5rem !important;
}

section {
    padding: 3rem 0 !important;
}

/* Reduce top padding on first content section (About) */
#about {
    padding-top: 2rem !important;
}

/* Friendlier border radius */
#hero .image img {
    border-radius: 1.5rem !important;
}

#hero a.btn {
    border-radius: 0.875rem !important;
}

#education .card {
    border-radius: 1rem !important;
}

/* ============================================
   PHASE 3: POLISH & INTERACTIONS
   ============================================ */

/* Skill badges with accent background */
#about ul.skills-list li {
    background-color: rgba(6, 182, 212, 0.08);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
}

#about ul.skills-list li::before {
    color: var(--accent-color) !important;
}

/* Accent bar on experience roles */
#experience .experience-role {
    border-left-color: var(--accent-color) !important;
    border-left-width: 3px !important;
}

/* Color transitions instead of opacity */
#about a:hover,
#experience a:hover {
    color: var(--accent-color) !important;
    transition: color 0.2s ease;
}

/* Accordion hover effects */
#experience .accordion-button:hover {
    color: var(--primary-color) !important;
    background-color: rgba(6, 182, 212, 0.04) !important;
    transition: all 0.2s ease;
}

#experience .accordion-button:not(.collapsed) {
    background: linear-gradient(90deg,
                rgba(37, 99, 235, 0.05),
                rgba(6, 182, 212, 0.05)) !important;
    border-left: 3px solid var(--accent-color);
}

/* Scroll indicator with gradient */
.scroll-indicator .chevron:before,
.scroll-indicator .chevron:after {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
}

/* ============================================
   MORE TEAL ACCENTS FOR CONSISTENCY
   ============================================ */

/* Add teal accents to section titles */
#about h3,
#experience h3,
#education h3,
#achievements h3,
#contact h3 {
    position: relative;
    padding-bottom: 0.75rem;
}

#about h3::after,
#experience h3::after,
#education h3::after,
#achievements h3::after,
#contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* Teal highlights on list items in About section content */
#about .content ul li::before {
    content: "▹";
    color: var(--accent-color) !important;
    position: absolute;
    left: 0;
    font-weight: bold;
}

#about .content ul li {
    position: relative;
    padding-left: 20px;
}

/* Education card hover with teal accent */
#education .card {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

#education .card:hover {
    border-left-color: var(--accent-color);
}

/* Achievement items with teal accent on hover */
#achievements .card {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

#achievements .card:hover {
    border-left-color: var(--accent-color);
}

/* Hero subtitle with subtle teal highlight */
#hero h2 {
    position: relative;
}

/* Link colors with teal accent */
a:not(.btn):hover {
    color: var(--accent-color) !important;
}

/* ============================================
   FOOTER OVERRIDE
   ============================================ */

/* Hide the "Made with heart" footer text */
footer .text-secondary {
    display: none !important;
}
