/* 
 * Resume Styles CSS
 * - Optimized with consolidated selectors
 * - Uses DRY principles to reduce repetition
 * - Organized in logical groupings
 * - Dark mode support
 * - Responsive design
 * - Accessibility enhancements
 */

/* ====== CSS VARIABLES ====== */
:root {
  /* Color Palette */
  --brand-black: #000000;
  --brand-white: #ffffff;
  --brand-teal: #3b6b5e;
  --brand-teal-hover: #2d5247;

  --primary-color: var(--brand-teal);
  --primary-color-hover: var(--brand-teal-hover);
  --secondary-color: var(--brand-teal);
  --accent-color: var(--brand-teal);
  --success-color: var(--brand-teal);
  --warning-color: var(--brand-teal);
  --error-color: var(--brand-black);
  --info-color: var(--brand-teal);
  --logo-color: var(--brand-teal);
  
  /* UI Colors */
  --text-color: var(--brand-black);
  --text-color-light: var(--brand-teal);
  --background-color: var(--brand-white);
  --background-secondary: var(--brand-white);
  --border-color: rgba(0, 0, 0, 0.12);
  
  /* Dark Theme Colors */
  --dark-text-color: var(--brand-white);
  --dark-text-color-light: rgba(255, 255, 255, 0.88);
  --dark-background-color: var(--brand-black);
  --dark-background-secondary: var(--brand-black);
  --dark-border-color: rgba(255, 255, 255, 0.14);
  
  /* Layout */
  --container-max-width: 1200px;
  --sidebar-width: 280px;
  --section-padding: 80px 20px;
  --card-padding: 25px;
  --border-radius: 8px;
  --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.15);
  
  /* Typography */
  --font-primary: 'PT Sans', Arial, sans-serif;
  --font-secondary: 'Roboto', Arial, sans-serif;
  --font-heading: 'Montserrat', Arial, sans-serif;
  --font-monospace: 'Consolas', monospace;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  
  /* Z-Index Layers */
  --z-modal: 1050;
  --z-popup: 1000;
  --z-fixed: 900;
  --z-overlay: 100;
  --z-dropdown: 50;
  --z-normal: 1;
  
  /* Transitions & Animations */
  --transition-speed: 0.3s;
  --transition-function: ease;
  --hover-transition: all 0.3s ease;
  --hover-lift: translateY(-5px);
  --card-hover-transform: translateY(-10px) scale(1.02);
  --animation-speed-fast: 0.4s;
  --animation-speed-medium: 0.6s;
  --animation-speed-slow: 0.8s;
  --animation-curve: cubic-bezier(0.25, 0.1, 0.25, 1);
  
  /* Border Styles */
  --border-width-small: 2px;
  --border-width-medium: 2.5px;
  --border-width-large: 3px;
  
  /* Accessibility */
  --focus-outline: 3px solid #4d90fe;
  --focus-outline-offset: 2px;
}

/* ====== RESET & BASE STYLES ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  scroll-padding-top: 100px; /* For anchor links to account for fixed header */
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
  transition: background-color var(--transition-speed), 
              color var(--transition-speed);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.3s;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  font-weight: bold;
}

.skip-link:focus {
  top: 0;
}

/* Dark mode base styles */
body.dark-mode {
  /* Remap the shared theme variables to their dark values so every element
     using var(--text-color)/var(--background-secondary)/var(--border-color)
     stays readable in dark mode (fixes white-on-white pills, etc.). */
  --text-color: var(--dark-text-color);
  --text-color-light: var(--dark-text-color-light);
  --background-color: var(--dark-background-color);
  --background-secondary: var(--dark-background-secondary);
  --border-color: var(--dark-border-color);

  color: var(--dark-text-color);
  background-color: var(--dark-background-color);
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 0.75em;
  font-weight: 600;
  transition: color var(--transition-speed);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--transition-speed), 
              background-color var(--transition-speed);
}

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

a:focus {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

/* Dark mode link styles */
body.dark-mode a {
  color: var(--dark-text-color);
}

body.dark-mode a:hover {
  color: var(--primary-color);
}

/* ====== LAYOUT & CONTAINERS ====== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Sections */
section {
  padding: var(--section-padding);
  scroll-margin-top: 100px; /* For smooth scrolling with fixed header */
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--primary-color);
}

/* ====== COMMON COMPONENTS ====== */
/* Social Media Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #333;
  color: white;
  transition: all 0.3s;
}

.social-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Platform-specific colors on hover - using attribute selectors to avoid repetition */
a[href*="linkedin.com"]:hover {
  background-color: #0077b5 !important;
  color: white !important;
}

a[href*="github.com"]:hover {
  background-color: #333 !important;
  color: white !important;
}

a[href*="x.com"]:hover,
a[href*="twitter.com"]:hover {
  background-color: #000000 !important;
  color: white !important;
}

a[href*="instagram.com"]:hover {
  background-color: #e1306c !important;
  color: white !important;
}

/* Card Animation Common Styles - consolidated selectors */
.education-card-animated,
.skills-card-animated,
.project-card-animated,
.experience-card-animated {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  position: relative;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

/* Card sizing specifics */
.education-card-animated {
  max-width: 600px;
  margin: 0 auto;
}

.project-card-animated,
.experience-card-animated {
  max-width: 800px;
  margin: 40px auto 20px;
}

/* Dark mode card styles */
body.dark-mode .education-card-animated,
body.dark-mode .skills-card-animated,
body.dark-mode .project-card-animated,
body.dark-mode .experience-card-animated {
  background-color: var(--dark-background-color);
  border-color: var(--dark-border-color);
}

/* Card hover effects */
.education-card-animated:hover,
.skills-card-animated:hover,
.project-card-animated:hover,
.experience-card-animated:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .education-card-animated:hover,
  .skills-card-animated:hover,
  .project-card-animated:hover,
  .experience-card-animated:hover {
    transform: none;
    box-shadow: var(--box-shadow);
  }
}

/* Card content positioning */
.education-card-content,
.skills-card-content,
.project-card-content,
.experience-card-content {
  position: relative;
  z-index: 2;
}

/* SVG Animation Common Styles */
.education-card-animated svg,
.skills-card-animated svg,
.project-card-animated svg,
.experience-card-animated svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* SVG animation parameters - grouped by animation type */
.education-card-animated svg rect,
.skills-card-animated svg rect {
  stroke: var(--primary-color);
  stroke-width: var(--border-width-medium);
  stroke-dasharray: 600, 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset var(--animation-speed-medium) var(--animation-curve);
  fill: transparent;
}

.project-card-animated svg rect,
.experience-card-animated svg rect {
  stroke: var(--primary-color);
  stroke-width: var(--border-width-medium);
  stroke-dasharray: 1000, 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset var(--animation-speed-slow) var(--animation-curve);
  fill: transparent;
}

/* Common hover effect for SVG rectangles */
.education-card-animated:hover svg rect,
.skills-card-animated:hover svg rect,
.project-card-animated:hover svg rect,
.experience-card-animated:hover svg rect {
  stroke-dashoffset: 0;
}

/* Common tag styles - grouped by purpose */
.skill-tag,
.project-tag,
.experience-tag {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: inline-block;
  margin: 2px;
}

/* Skill tag specific styles */
.skill-tag {
  background-color: var(--primary-color);
  color: white;
  transition: all 0.3s;
  cursor: default;
}

.skill-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Project and experience tags */
.project-tag,
.experience-tag {
  background-color: var(--background-secondary);
  color: var(--text-color);
}

/* Dark mode tags */
body.dark-mode .project-tag,
body.dark-mode .experience-tag {
  background-color: var(--dark-background-secondary);
  color: var(--dark-text-color);
}

/* Tags container */
.project-tags,
.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

/* ====== NAVIGATION ====== */
.navbar {
  background-color: var(--background-color);
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.navbar.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

.nav-links a:hover::after, 
.nav-links a.active::after {
  width: 100%;
}

/* Dark mode navbar styles */
body.dark-mode .navbar {
  background-color: var(--dark-background-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .navbar.scrolled {
  background-color: rgba(34, 34, 34, 0.95);
}

body.dark-mode .nav-links a {
  color: var(--dark-text-color);
}

/* Mobile menu button — teal glass pill in enhancements.css */
.menu-btn {
  display: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 2000;
  border: none;
  background: none;
  flex-shrink: 0;
}

.menu-btn:focus {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

/* Logo Styles */
.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

.logo:hover + .name-reveal {
  opacity: 1;
}

#logoSVG {
  width: 50px;
  height: 50px;
}

.name-reveal {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-color-light);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

body.dark-mode .name-reveal {
  color: var(--dark-text-color-light);
}

/* ====== SIDEBAR ====== */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #222;
  color: #fff;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1500;
  padding: 20px;
}

.sidebar.active {
  transform: translateX(0);
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

/* Sidebar sections */
.sidebar-about {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-about .title {
  font-size: 1.5rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.sidebar-about .subtitle {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Sidebar navigation */
.sidebar ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.sidebar li {
  margin-bottom: 2px;
}

.sidebar ul a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
}

.sidebar ul a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.sidebar li a.active {
  background-color: rgba(255, 255, 255, 0.15);
  border-left: 3px solid white;
  font-weight: bold;
}

.sidebar i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  transition: transform 0.2s;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s;
  z-index: 1600;
}

.close-btn:hover {
  transform: rotate(90deg);
  background-color: rgba(255, 255, 255, 0.3);
}

.close-btn:focus {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

.sidebar-footer {
  text-align: center;
  font-size: 0.8rem;
  padding: 20px 0;
  opacity: 0.7;
  margin-top: 40px;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1400;
}

.overlay.active {
  visibility: visible;
  opacity: 1;
}

/* Sidebar = mobile only; desktop uses horizontal nav links */
@media (min-width: 993px) {
  .sidebar,
  .overlay {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .menu-btn {
    display: none !important;
  }
}

/* Theme Toggle — pill + glossy icons in enhancements.css */
.theme-toggle {
  font-size: 20px;
  cursor: pointer;
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  flex-shrink: 0;
}

body.dark-mode .theme-toggle {
  color: var(--dark-text-color);
}

.theme-toggle:focus {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

/* ====== PROFILE SECTION - KNUFORD STYLE ====== */
.profile-section {
  padding: 150px 0 80px;
  background-color: var(--background-color);
  overflow: hidden;
}

body.dark-mode .profile-section {
  background-color: var(--dark-background-color);
}

/* Modern split layout container */
.knuford-profile-container {
  display: flex;
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background: white;
  border: 1px solid var(--border-color);
}

body.dark-mode .knuford-profile-container {
  background: var(--dark-background-color);
  border-color: var(--dark-border-color);
}

/* Image area styling */
.profile-image-area {
  width: 45%;
  position: relative;
  overflow: hidden;
  /* Clip path creates the diagonal cut */
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.profile-image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.5s ease;
}

.profile-image-area:hover img {
  transform: scale(1.05);
}

/* Gradient overlay to make text more readable if placed on the image */
.overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

/* Content area styling */
.knuford-profile-container .profile-content {
  width: 55%;
  padding: 50px 40px 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Profile name styling */
.knuford-profile-container .profile-name {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

.knuford-profile-container .profile-name::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  transition: width 0.3s ease, background-color 0.3s ease;
}

body.dark-mode .knuford-profile-container .profile-name {
  color: var(--dark-text-color);
}

.knuford-profile-container .profile-title {
  font-size: 1.3rem;
  color: var(--text-color-light);
  margin-bottom: 25px;
  margin-top: 15px;
}

body.dark-mode .knuford-profile-container .profile-title {
  color: var(--dark-text-color-light);
}

.knuford-profile-container .profile-objective h2 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
  color: var(--text-color);
}

body.dark-mode .knuford-profile-container .profile-objective h2 {
  color: var(--dark-text-color);
}

.knuford-profile-container .profile-objective p {
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-color);
}

body.dark-mode .knuford-profile-container .profile-objective p {
  color: var(--dark-text-color);
}

/* Profile contact styles */
.knuford-profile-container .profile-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
}

.knuford-profile-container .contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 50px;
  background-color: var(--background-secondary);
  transition: all 0.3s ease;
}

body.dark-mode .knuford-profile-container .contact-item {
  background-color: var(--dark-background-secondary);
}

.knuford-profile-container .contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.knuford-profile-container .contact-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.knuford-profile-container .contact-item a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
}

body.dark-mode .knuford-profile-container .contact-item a {
  color: var(--dark-text-color);
}

/* ====== SECTION SPECIFIC STYLES ====== */
/* Common section background colors */
.education-section,
.projects-section {
  background-color: var(--background-color);
}

.skills-section,
.experience-section {
  background-color: var(--background-secondary);
}

/* Dark mode section backgrounds */
body.dark-mode .education-section,
body.dark-mode .projects-section {
  background-color: var(--dark-background-color);
}

body.dark-mode .skills-section,
body.dark-mode .experience-section {
  background-color: var(--dark-background-secondary);
}

/* Common section padding */
.education-section,
.skills-section,
.projects-section,
.experience-section {
  padding: 80px 0;
}

/* Education specific styles */
.education-details h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 10px;
}

body.dark-mode .education-details h3 {
  color: var(--dark-text-color);
}

.education-details h4 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 500;
}

.education-period {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.education-location {
  color: var(--text-color-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

body.dark-mode .education-location {
  color: var(--dark-text-color-light);
}

/* Skills specific styles */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.skills-card-content h3 {
  font-size: 1.4rem;
  color: var(--text-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

body.dark-mode .skills-card-content h3 {
  color: var(--dark-text-color);
}

.skills-card-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Project specific styles */
.project-card-content h3 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 15px;
}

body.dark-mode .project-card-content h3 {
  color: var(--dark-text-color);
}

.project-details {
  margin-bottom: 25px;
}

.project-details p {
  color: var(--text-color);
  margin-bottom: 10px;
}

body.dark-mode .project-details p {
  color: var(--dark-text-color);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 500;
  padding: 8px 15px;
  border: 1px solid var(--primary-color);
  border-radius: 30px;
  transition: all 0.3s;
  text-decoration: none;
}

.project-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.project-link i {
  transition: transform 0.3s ease;
}

.project-link:hover i {
  transform: translateX(3px);
}

/* Experience specific styles */
.experience-card-content h3 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 10px;
}

body.dark-mode .experience-card-content h3 {
  color: var(--dark-text-color);
}

.experience-card-content h4 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 500;
}

.responsibilities ul {
  list-style-type: disc;
  padding-left: 20px;
}

.responsibilities li {
  color: var(--text-color);
  margin-bottom: 10px;
}

body.dark-mode .responsibilities li {
  color: var(--dark-text-color);
}

.responsibilities li strong {
  color: var(--primary-color);
  font-weight: 600;
}

.experience-summary {
  max-width: 800px;
  margin: 30px auto 0;
  padding: 20px;
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  position: relative;
  border-left: 4px solid var(--primary-color);
}

body.dark-mode .experience-summary {
  background-color: var(--dark-background-color);
  border-color: var(--dark-border-color);
}

.experience-summary p {
  color: var(--text-color);
  line-height: 1.7;
}

body.dark-mode .experience-summary p {
  color: var(--dark-text-color);
}

/* ====== TAILORED RESUMES ====== */
.tailored-resumes-section {
  padding: var(--section-padding);
  background-color: var(--background-secondary);
}

body.dark-mode .tailored-resumes-section {
  background-color: var(--dark-background-secondary);
}

.tailored-resumes-section .section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--text-color-light);
}

body.dark-mode .tailored-resumes-section .section-subtitle {
  color: var(--dark-text-color-light);
}

.tailored-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tailored-filter-btn {
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background: var(--background-color);
  color: var(--text-color);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tailored-filter-btn:hover,
.tailored-filter-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

body.dark-mode .tailored-filter-btn {
  background: var(--dark-background-color);
  border-color: var(--dark-border-color);
  color: var(--dark-text-color);
}

.tailored-status {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-color-light);
  min-height: 1.35em;
  margin-bottom: 24px;
}

.tailored-resumes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.tailored-resume-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 16px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background: var(--background-color);
  box-shadow: var(--box-shadow);
  color: var(--text-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.tailored-resume-card.is-selected {
  border-color: var(--primary-color);
  box-shadow: var(--box-shadow-hover);
}

body.dark-mode .tailored-resume-card {
  background: var(--dark-background-color);
  border-color: var(--dark-border-color);
  color: var(--dark-text-color);
}

.tailored-resume-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-hover);
}

.tailored-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.tailored-dl-btn,
.tailored-learn-btn {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--background-secondary);
  color: var(--text-color);
  text-decoration: none;
}

.tailored-learn-btn {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.tailored-learn-btn:hover {
  filter: brightness(1.08);
}

/* Dark mode: keep the ".docx" pill visible as a button on the dark card */
body.dark-mode .tailored-dl-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--dark-border-color);
  color: var(--dark-text-color);
}
body.dark-mode .tailored-dl-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.tailored-resume-card.is-filter-hidden {
  display: none !important;
}

.tailored-resume-card i {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.tailored-resume-card h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  line-height: 1.35;
}

.role-learning-detail {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background: var(--background-color);
  text-align: left;
}

body.dark-mode .role-learning-detail {
  background: var(--dark-background-color);
  border-color: var(--dark-border-color);
}

.role-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.role-detail-head h3 {
  margin: 0;
}

.role-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.role-detail-intro {
  color: var(--text-color-light);
  margin: 0 0 16px;
  line-height: 1.6;
}

.role-picks-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
}

.role-pick {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 0.95rem;
}

.role-pick-type {
  display: inline-block;
  min-width: 4.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-right: 8px;
}

.role-portfolio-links ul {
  padding-left: 1.2rem;
  margin: 0;
}

.learn-stem-topics {
  margin-top: 32px;
  text-align: center;
}

.learn-stem-intro {
  font-size: 0.95rem;
  color: var(--text-color-light);
  max-width: 36rem;
  margin: 0 auto 16px;
  line-height: 1.55;
}

.learn-stem-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.learn-stem-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-color);
  transition: background 0.2s ease, color 0.2s ease;
}

.learn-stem-links a:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.download-btn--secondary {
  background-color: transparent;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
  box-shadow: none;
}

.download-btn--secondary:hover {
  background-color: var(--primary-color);
  color: #fff !important;
}

body.dark-mode .download-btn--secondary {
  color: var(--primary-color) !important;
}

/* ====== DOWNLOAD SECTION ====== */
.download-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--background-color);
  position: relative;
}

body.dark-mode .download-section {
  background-color: var(--dark-background-color);
}

.download-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.download-btn,
.print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--primary-color);
  color: white !important;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  cursor: pointer;
}

.print-btn {
  background-color: var(--secondary-color);
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.download-btn::before,
.print-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
  z-index: -1;
}

.download-btn:hover,
.print-btn:hover {
  transform: translateY(-5px);
}

.download-btn:hover {
  background-color: var(--primary-color-hover);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.print-btn:hover {
  background-color: #5a6268;
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.download-btn:hover::before,
.print-btn:hover::before {
  left: 100%;
}

.download-btn:active,
.print-btn:active {
  transform: translateY(-2px);
}

.download-btn i,
.print-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.download-btn:hover i,
.print-btn:hover i {
  transform: translateY(-2px);
}

/* Download hint */
.download-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-color-light);
  margin-top: 15px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.download-btn:hover + .download-hint,
.print-btn:hover + .download-hint {
  opacity: 1;
}

body.dark-mode .download-hint {
  color: var(--dark-text-color-light);
}

/* Focus states for accessibility */
.download-btn:focus,
.print-btn:focus {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

/* Make download section responsive */
@media (max-width: 768px) {
  .download-btn,
  .print-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
  
  .download-btn i,
  .print-btn i {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .download-section {
    padding: 40px 0;
  }
  
  .download-btn,
  .print-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ====== FOOTER ====== */
.footer {
  background-color: #222;
  color: white;
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 0 0 100%;
  max-width: 300px;
  margin-bottom: 30px;
}

.footer-logo h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: white;
}

.footer-logo p {
  opacity: 0.7;
}

.footer-links {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-links-column {
  flex: 0 0 auto;
  min-width: 160px;
}

/* Footer headings */
.footer-links-column h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: white;
}

.footer-links-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

/* Footer links */
.footer-links-column ul {
  list-style: none;
  padding: 0;
}

.footer-links-column ul li {
  margin-bottom: 10px;
}

.footer-links-column ul a {
  color: #ddd;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
  opacity: 0.7;
  text-decoration: none;
}

.footer-links-column ul a:hover {
  color: white;
  opacity: 1;
  transform: translateX(5px);
}

/* Footer bottom section */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.copyright {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Footer social links */
.footer .social-links {
  margin: 0;
  padding: 0;
  border-top: none;
}

.back-to-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s;
}

.back-to-top a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

/* ====== SCROLL INDICATOR & NAVIGATION ====== */
.bottom-scrollbar-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  background-color: rgba(0, 0, 0, 0.05);
  height: 30px;
  display: flex;
  flex-direction: column;
}

.scroll-indicator {
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  width: 0;
  transition: width 0.2s;
}

.scroll-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  height: 26px;
  background-color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

body.dark-mode .scroll-nav {
  background-color: rgba(34, 34, 34, 0.9);
}

.scroll-nav-item {
  background: none;
  border: none;
  padding: 0 10px;
  font-size: 0.8rem;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s;
}

body.dark-mode .scroll-nav-item {
  color: var(--dark-text-color);
}

.scroll-nav-item.active,
.scroll-nav-item:hover {
  color: var(--primary-color);
  font-weight: bold;
}

.scroll-nav-item:focus {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 40px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, background-color 0.3s;
  z-index: 50;
}

#back-to-top.active {
  opacity: 1;
  transform: translateY(0);
}

#back-to-top:hover {
  background-color: var(--primary-color-hover);
  transform: translateY(-5px);
}

#back-to-top:focus {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation for the Logo */
.stem, .crossbar, .top-loop, .bottom-curve, .diagonal {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: none;
}

.period {
  opacity: 0;
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .stem, .crossbar, .top-loop, .bottom-curve, .diagonal {
    animation: none !important;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
  
  .period {
    opacity: 1;
  }
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 992px) {
  /* Hide desktop nav links on tablets */
  .nav-links a:not(.theme-toggle):not(.menu-btn) {
    display: none;
  }
  
  /* Show mobile menu button */
  .menu-btn {
    display: block;
  }
  
  /* Center profile on tablets */
  .profile-container {
    flex-direction: column;
    text-align: center;
  }
  
  /* Center decorative elements */
  .profile-objective h2::after,
  .skills-card-content h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .skills-card-content h3 {
    text-align: center;
  }
  
  .profile-contact {
    justify-content: center;
  }
  
  /* Footer adjustments */
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .footer-links-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links-column h4,
  .footer-links-column ul {
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
  }
  
  /* Knuford profile responsive adjustments */
  .knuford-profile-container {
    flex-direction: column;
    min-height: auto;
  }
  
  .profile-image-area {
    width: 100%;
    height: 350px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  }
  
  .knuford-profile-container .profile-content {
    width: 100%;
    padding: 40px;
  }
  
  .knuford-profile-container .profile-name {
    text-align: center;
  }
  
  .knuford-profile-container .profile-name::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .knuford-profile-container .profile-title {
    text-align: center;
  }
  
  .knuford-profile-container .profile-contact {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Skills grid adjustment for mobile */
  .skills-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  /* Center tags on small devices */
  .project-tags,
  .experience-tags {
    justify-content: center;
  }
  
  /* Center headings on small devices */
  .experience-card-content h3,
  .experience-card-content h4,
  .project-card-content h3 {
    text-align: center;
  }
  
  /* Smaller download button */
  .download-btn,
  .print-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
  
  /* Hide scrollbar on small screens */
  .bottom-scrollbar-container {
    display: none;
  }
  
  /* Reduce section padding */
  .education-section,
  .skills-section,
  .projects-section,
  .experience-section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  /* Smaller profile image on mobile */
  .profile-image-area {
    height: 250px;
  }
  
  /* Smaller headings on mobile */
  .profile-name,
  .knuford-profile-container .profile-name {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  /* Smaller card padding on mobile */
  .experience-card-animated,
  .project-card-animated,
  .education-card-animated,
  .skills-card-animated {
    padding: 20px;
  }
  
  /* Contact items full width on mobile */
  .contact-item,
  .knuford-profile-container .contact-item {
    flex: 0 0 100%;
    justify-content: center;
  }
  
  /* Tighter list padding on mobile */
  .responsibilities ul {
    padding-left: 15px;
  }
  
  /* Knuford profile mobile adjustments */
  .knuford-profile-container .profile-content {
    padding: 30px 20px;
  }
  
  .knuford-profile-container .profile-objective h2 {
    font-size: 1.4rem;
    text-align: center;
  }
  
  /* Smaller footer on mobile */
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer-links-column {
    min-width: 100%;
    margin-bottom: 20px;
  }
}

/* ====== PRINT STYLES ====== */
@media print {
  /* General print styles */
  @page {
    margin: 1.5cm;
    size: A4;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.3;
    background: white !important;
    color: black !important;
  }
  
  /* Hide non-essential elements */
  .navbar,
  .sidebar,
  .overlay,
  .bottom-scrollbar-container,
  #back-to-top,
  .download-section,
  .footer {
    display: none !important;
  }
  
  /* Adjust spacing and layout */
  .container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }
  
  /* No fixed positions in print */
  .profile-section {
    padding-top: 0;
  }
  
  /* Ensure content is visible */
  .profile-name,
  .profile-title,
  .section-title,
  .education-details h3,
  .skills-card-content h3,
  .project-card-content h3,
  .experience-card-content h3,
  .experience-card-content h4 {
    color: black !important;
  }
  
  /* Remove decorative elements */
  .profile-name::after,
  .section-title::after,
  .skills-card-content h3::after {
    display: none;
  }
  
  /* Remove animations */
  .education-card-animated svg,
  .skills-card-animated svg,
  .project-card-animated svg,
  .experience-card-animated svg {
    display: none;
  }
  
  /* Force background colors */
  .education-card-animated,
  .skills-card-animated,
  .project-card-animated,
  .experience-card-animated,
  .knuford-profile-container,
  .experience-summary {
    box-shadow: none;
    border: 1px solid #ddd;
    background: white !important;
  }
  
  /* Fix layout for printing */
  .knuford-profile-container {
    display: block;
    box-shadow: none;
  }
  
  .profile-image-area {
    width: 30%;
    float: left;
    margin-right: 20px;
    clip-path: none;
    height: auto;
    min-height: 200px;
  }
  
  .knuford-profile-container .profile-content {
    width: auto;
    overflow: hidden;
    padding: 20px 0;
  }
  
  /* Adjust margins and page breaks */
  .section-title {
    margin-top: 30px;
  }
  
  section {
    page-break-inside: avoid;
    padding: 20px 0;
  }
  
  /* Force all links to show their URLs */
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-style: italic;
  }
  
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }
  
  /* Make sure text is visible */
  .responsibilities li,
  .project-details p,
  .experience-summary p {
    color: black !important;
  }
} column;
  }
