/* Base styles for both mobile and desktop */
html {
  height: 100%;
   margin: 0;
  padding: 0;
}

body {
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

html, body, .container-fluid, section {
  overflow-x: hidden;
}

.container-fluid {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
}

h1 {
  font-family: 'Jersey 25', 'Helvetica Neue', Arial, sans-serif;
  color: #FCFFDB;
  text-decoration: none;
  font-size: 2.36rem;
  font-weight: 400;
    margin: 0;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.3rem;
}

#sideNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: #3B4D99;
}

section {
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}

.row {
  margin-left: 0;
  margin-right: 0;
}

a {
   color: #3B4D99; 
}

.bg-primary {
    background-color: #ffffff; !important 
}

.km-button {
  /* Base button styles */
  display: inline-block;
  padding: 12px 24px;
  background-color: #3B4D99; 
  color: #FCFFDB; /* Light yellow text to match your nav text */
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  
  /* Box shadow for depth */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hover state */
.km-button:hover {
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Active/click state */
.km-button:active {
  background-color: #2d3a7a; /* Darker purple for click */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transform: translateY(1px);
}

/* Focus state for accessibility */
.km-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(62, 8, 132, 0.4);
}

/* Secondary color option */
.km-button.secondary {
  background-color: #E3DDFF; /* Light purple to match subhead color */
  color: #3B4D99; /* Purple text */
}

.km-button.secondary:hover {
  background-color: #d0c9f7;
}

.km-button.secondary:active {
  background-color: #beb5f0;
}

/* Accent color option (using yellow from your palette) */
.km-button.accent {
  background-color: #FCFFDB; /* Light yellow from your header text */
  color: #3B4D99; /* Purple text */
}

.km-button.accent:hover {
  background-color: #f0f3cb;
}

.km-button.accent:active {
  background-color: #e4e7bc;
}

/* Full-width button option */
.km-button.full-width {
  display: block;
  width: 100%;
  margin: 10px 0;
}

/* Disabled state */
.km-button.disabled,
.km-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

section {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
  clear: both;
}

.main-sections {
    display: block;
    width: 100%;
  }

subhead {
    font-size: 1.15rem;
    color: #E3DDFF;
}

p.lead {
    max-width: 750px;
}


select[multiple] {
  height: auto;
  min-height: 150px;
  padding: 0.5rem;
}

select[multiple] option {
  padding: 0.5rem;
  margin-bottom: 2px;
  border-radius: 3px;
  transition: background-color 0.2s;
}

select[multiple] option:checked {
  background-color: rgba(55, 32, 134, 0.2) !important;
  color: #3B4D99;
  font-weight: 500;
}

select[multiple] option:hover {
  background-color: rgba(55, 32, 134, 0.1);
}

.form-text {
  color: #666;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.contact-form-container {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form inputs */
.form-control {
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: #3B4D99;
  box-shadow: 0 0 0 0.2rem rgba(55, 32, 134, 0.25);
}

/* Form labels */
label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  color: #333;
}

/* Submit button */
.contact-submit {
  background-color: #3B4D99;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
}

.contact-submit:hover, 
.contact-submit:focus {
  background-color: #4e35b1;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Contact info section */
.contact-info {
  background-color: #fcffdb;
  padding: 2rem;
  border-radius: 8px;
  height: 100%;
  color: #3B4D99;
}

.contact-info h4 {
  color: #3B4D99;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-item i {
  font-size: 1.2rem;
  margin-right: 1rem;
  color: #3B4D99;
}

.contact-item a {
  color: #3B4D99;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: #4e35b1;
  text-decoration: underline;
}


.contact-social {
  display: flex;
  margin-top: 1.5rem;
}

.contact-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  background-color: #3B4D99;
  color: #fcffdb;
  border-radius: 50%;
  margin-right: 1rem;
  font-size: 1.2rem;
  transition: background-color 0.3s, transform 0.2s;
}

.contact-social-icon:hover,
.contact-social-icon:focus {
  background-color: #4e35b1;
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

/* Footer Navigation Fixes */
.case-study-footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 4rem;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-back,
.footer-next {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.75rem 1rem;
}

.footer-back:hover,
.footer-next:hover {
  color: #000;
  text-decoration: none;
}

.footer-back svg,
.footer-next svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}



/* Improve accessibility of social icons */
.footer-social {
  display: flex;
  align-items: center;
}
.resume-item {
    margin-bottom: 1.5rem;
  }
  
  .exp-title {
    font-weight: bold;
  }
  
  .work-title {
    font-style: italic;
    margin-bottom: 1rem;
  }
  
  .mb-4 {
    margin-bottom: 1rem;
  }
  .work-columns {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
  }
  
  
  
  .work-column {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 10px;
    padding-left: 10px;
  }
  
/* Fix for HR elements before footer */
hr.m-0 {
  margin: 0;
}

/* Use very specific selectors to increase specificity */
.footer .footer-content .footer-section .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  width: 3.5rem;
  background-color: #3B4D99;
  color: #FCFFDB;
  border-radius: 50%;
  text-align: center;
  font-size: 1.5rem;
  margin: 0 1.5rem 0 0;
  transition: background-color 0.3s, transform 0.2s;
}

/* Hover state with high specificity */
.footer .footer-content .footer-section .footer-social a:hover,
.footer .footer-content .footer-section .footer-social a:focus {
  background-color: #4e35b1;
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

/* Container styling with high specificity */
 .footer .footer-content .footer-section .footer-social {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

/* Footer section spacing with high specificity */
 .footer .footer-content .footer-section {
  padding: 1rem 0;
}

/* Additional specificity for icon size */
 .footer .footer-content .footer-section .footer-social a i.fa,
.footer .footer-content .footer-section .footer-social a i.fab {
  font-size: 1.5rem;
}

  footer.footer + footer {
  display: none; /* Hide duplicate footer if present */
}

/* Reset any potential conflicting styles from minified CSS */
html body .footer .footer-content .footer-section .footer-social a * {
  margin: 0;
  padding: 0;
}

/* Target specific icons to override any font-specific styles */
.footer .footer-content .footer-section .footer-social a i.fa-instagram,
.footer .footer-content .footer-section .footer-social a i.fa-linkedin-in,
.footer .footer-content .footer-section .footer-social a i.fa-envelope {
  font-size: 1.5rem;
  line-height: 1;
}

/* ============================================
   CASE STUDY COMPONENT STYLES - NEW
   ============================================ */

.case-study-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.case-study-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.case-study-item:nth-child(1) { animation-delay: 0.1s; }
.case-study-item:nth-child(2) { animation-delay: 0.2s; }
.case-study-item:nth-child(3) { animation-delay: 0.3s; }
.case-study-item:nth-child(4) { animation-delay: 0.4s; }

.case-study-item:nth-child(even) {
  direction: rtl;
}

.case-study-item:nth-child(even) > * {
  direction: ltr;
}

.case-study-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.4s ease;
}

.case-study-visual:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.case-study-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.case-study-visual:hover img {
  transform: scale(1.05);
}

.case-study-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 2rem 1.5rem 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-study-visual:hover .case-study-overlay {
  opacity: 1;
}

.case-study-tag {
  display: inline-block;
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
}

.case-study-content {
  padding: 1rem 0;
}

.case-study-number {
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  color: #999;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.case-study-title {
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.case-study-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.5rem;
}

.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.case-study-meta-item {
  display: flex;
  flex-direction: column;
}

.case-study-meta-label {
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  margin-bottom: 0.25rem;
}

.case-study-meta-value {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}

.case-study-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1a1a1a;
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 2px solid #1a1a1a;
  transition: all 0.3s ease;
  font-weight: 500;
}

.case-study-cta:hover {
  color: #0066cc;
  border-color: #0066cc;
  gap: 1rem;
  text-decoration: none;
}

.case-study-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.case-study-cta:hover svg {
  transform: translateX(4px);
}

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

/* ============================================
   END CASE STUDY COMPONENT STYLES
   ============================================ */

/* DESKTOP STYLES - Only apply when screen is 992px or larger */
@media (min-width: 992px) {
body {
    padding-left: 17rem; 
    padding-top: 0;
  }
  
  #sideNav {
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 17rem;
    height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

#sideNav .nav-item,
  #sideNav .nav-link,
  #sideNav .navbar-nav .nav-item,
  #sideNav .navbar-nav .nav-item .nav-link,
  #sideNav .navbar-nav .nav-item .nav-link.active {
    font-weight: initial;
  }
  
#sideNav .nav-item {
    margin: 0;
    width: 100%;
    display: block;
  }

 #sideNav .nav-link {
    font-size: 1.2rem;
    font-weight: 300; 
    padding: 0.75rem 0;
    text-align: center;
    display: block;
  }
  
#sideNav .navbar-nav .nav-item .nav-link {
    font-size: 1.2rem;
    font-weight: 500; 
    padding: 0.75rem 0;
    color: #E3DDFF;
    text-align: center;
    display: block;
  }
  
 #sideNav .navbar-nav .nav-item .nav-link.active {
    color: #FCFFDB !important;
    font-weight: 700; 
    text-decoration: underline;
  }
  
  
  
  .navbar-toggler {
    display: none !important;
  }
  
  #sideNav .navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem auto 1rem;
    padding: 0;
    width: 100%;
  }
  
  #sideNav .navbar-collapse {
    display: flex !important;
    flex-direction: column;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    background-color: transparent;
  }
  
  /* Navigation items styling */
  #sideNav .navbar-nav {
    flex-direction: column !important;
    width: 100%;
  }
  
  #sideNav .nav-item {
    margin: 0;
    width: 100%;
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
  }
  

 
  .container-fluid {
    padding: 0 2rem;
    width: auto;
  }
  
    section {
    padding: 1rem !important;
  }
  
  section#about {
    padding-top: 3rem !important;
  }
 
  .main-sections {
      display: flex;
      flex-wrap: wrap;
      margin-right: -15px;
      margin-left: -15px;
    }

 .resume-section {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }
 
 .d-flex {
    display: flex !important;
  }

.section-column {
      flex: 0 0 50%;
      max-width: 50%;
      position: relative;
      width: 100%;
      padding-right: 15px;
      padding-left: 15px;
    }

 .footer {
    width: 100%;
    margin-left: 0;
    padding: 1rem;
  }
  
  .footer .footer-content {
    padding: 0;
    width: 100%;
  }
}

/* MOBILE STYLES - Only apply when screen is smaller than 992px */
@media (max-width: 991px) {
  body {
    padding-top: 3.5rem;
    padding-left: 0;
  }
  
  #sideNav {
    min-height: 56px;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
  }
  
  .navbar-brand {
    display: inline-block;
    margin-right: auto;
    padding: 0;
  }
  
  .navbar-toggler {
    display: flex !important;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.25rem;
    background-color: transparent;
    margin-left: auto;
    color: #E3DDFF;
  }
  
  .navbar-toggler-icon {
      padding: 0 .25rem;
  }
  
    .navbar-nav {
    padding:1rem 1rem 0;
    font-size: 1.25rem;
}

  .navbar-collapse {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background-color: #3B4D99;
    z-index: 1000;
    width: 100%;
    display: none; /* Hidden by default */
  }
  
  .navbar-collapse.show {
    display: block !important;
  }
 
  .container-fluid {
    margin-top: 4rem;
    padding: 1rem;
    width: 100%;
    display: block !important;
  }
  
 section {
    padding: 1rem !important;
    margin-bottom: 1rem;
  }
  
   #sideNav .navbar-nav .nav-item .nav-link.active {
    color: #FCFFDB !important;
  }

.footer {
  position: relative;
  background-color: #3B4D99;
  color: #3B4D99;
  padding: 1rem 0;
  margin-top: 2rem;
  width: 100%;
  left: 0;
  margin-left: 0; /* Remove any left margin */
  box-sizing: border-box;
}
  
  .footer-content {
  padding: 0 1rem;
  display: flex;
  justify-content: center; /* Center the content horizontally */
  width: 100%;
  }
  
.footer .footer-content {
    padding: 0 1rem;
  }
  
.footer-section {
  text-align: center; /* Center the text within the section */
}

.section-column {
      width: 100%;
      margin-bottom: 2rem;
    }

h1 {
    font-size: 1.8rem;
    color: #FCFFDB;
    margin: 0;
}


subehead {  
    margin: 0;
    padding: 0;
}

h2 {
    font-size: 1.5rem;
    margin-top: 1rem;
  }

/* Fix for Welcome heading and cat emoji */
h2.title-spacing {
  display: block !important;
  visibility: visible !important;
}

h2.title-spacing span {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* Fix for flex display in sections */
.d-flex {
  display: block !important;
}

.contact-info {
    margin-top: 2rem;
  }
  
  .contact-form-container,
  .contact-info {
    padding: 1.5rem;
  }
  
  /* Case Study Mobile Responsive Styles */
  .case-study-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .case-study-item:nth-child(even) {
    direction: ltr;
  }
  
  .case-study-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
    .work-column {
      flex: 0 0 100%;
      max-width: 100%;
    }
    
    .work-column + .work-column {
      margin-top: 1.5rem;
    }
    
    /* Additional Case Study Mobile Adjustments */
    .case-study-grid {
      gap: 3rem;
    }
    
    .case-study-title {
      font-size: 1.5rem;
    }
    
    .case-study-meta {
      gap: 1rem;
    }
    
  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-back,
  .footer-next {
    width: 100%;
    justify-content: center;
  }
}
  
#sideNav h1 a,
#sideNav h1 a:link,
#sideNav h1 a:visited,
#sideNav h1 a:hover,
#sideNav h1 a:active {
    color: #FCFFDB !important;
    text-decoration: none !important;
    font-size: 2rem;
}