/* You can customize theme styles here */

/* ============================================
   FONT FAMILY REDESIGN - DM Sans
   ============================================ */

/* Import DM Sans from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

/* Apply DM Sans globally */
html,
html body,
body,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
p,
a,
span,
div,
button,
input,
textarea,
select,
.btn,
.display-1,
.display-2,
.display-3,
.display-4,
.navbar,
.nav-link,
.showcase,
.about,
.experience,
.education,
.testimonial,
.contact,
.footer,
.project-single {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Keep monospace for code elements only */
code,
pre,
kbd,
samp {
  font-family: 'SF Mono', 'Consolas', 'Monaco', 'Courier New', monospace !important;
}

/* Keep AutumnMoon font for logo second word (Leung) */
.navbar-brand span:nth-child(2) {
  font-family: 'AutumnMoon', cursive !important;
}

/* ============================================
   Modern Monochrome Theme Override
   ============================================ */

/* Text Selection Highlight */
html body ::-moz-selection {
  background-color: #2d2d2d;
  color: #ffffff;
}

html body ::selection {
  background-color: #2d2d2d;
  color: #ffffff;
}

/* Brand Logo - "Kayee" in sophisticated light gray */
.header .navbar-brand span:first-child {
  color: #6a6a6a !important;
}

/* Keep "Leung" in black for contrast */
.header .navbar-brand span:nth-child(2) {
  color: #1a1a1a !important;
}

/* Experience Section - Better Visual Hierarchy */
.experience__title {
  color: #1a1a1a !important;
  font-weight: 700 !important;
}

.experience__company {
  color: #666666 !important;
  font-weight: 600 !important;
}

/* Testimonial Section - Better Visual Hierarchy */
.testimonial__author-info h4 {
  color: #1a1a1a !important;
  font-weight: 700 !important;
  font-size: 17px !important;
}

.testimonial__author-info span {
  color: #666666 !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

/* Body text color */
html body {
  color: #1a1a1a !important;
}

/* Section borders */
.section--border-bottom::after {
  background-color: #e8e8e8 !important;
}

/* ============================================
   Button Styling - Modern Monochrome
   ============================================ */

/* All buttons - base styling */
.btn,
button,
input[type="submit"],
input[type="button"] {
  background-color: #1a1a1a !important;
  border: 2px solid #1a1a1a !important;
  color: #ffffff !important;
  transition: all 0.3s ease !important;
}

/* Button hover state */
.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background-color: #2d2d2d !important;
  border-color: #2d2d2d !important;
  color: #ffffff !important;
}

/* Button focus state - remove red/pink outline */
.btn:focus,
button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
.btn:active,
button:active,
input[type="submit"]:active,
input[type="button"]:active {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(45, 45, 45, 0.2) !important;
  background-color: #2d2d2d !important;
  border-color: #2d2d2d !important;
  color: #ffffff !important;
}

/* Remove any lingering focus rings */
*:focus {
  outline-color: #2d2d2d !important;
}

/* Input focus states */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  border-color: #2d2d2d !important;
  box-shadow: 0 0 0 2px rgba(45, 45, 45, 0.1) !important;
  outline: none !important;
}

/* ============================================
   Mobile Hamburger Menu - Better Contrast
   ============================================ */

/* Hamburger menu button background */
.navbar-toggler,
.header .navbar-toggler {
  background-color: #fafafa !important;
  border: 1px solid #e0e0e0 !important;
  padding: 8px 10px !important;
  border-radius: 4px !important;
}

/* Hamburger menu button on hover */
.navbar-toggler:hover,
.header .navbar-toggler:hover {
  background-color: #eeeeee !important;
  border-color: #cccccc !important;
}

/* Hamburger menu button when focused/active */
.navbar-toggler:focus,
.navbar-toggler:active,
.header .navbar-toggler:focus,
.header .navbar-toggler:active {
  background-color: #eeeeee !important;
  border-color: #cccccc !important;
  box-shadow: 0 0 0 2px rgba(45, 45, 45, 0.1) !important;
  outline: none !important;
}

/* Make the hamburger lines (dashes) dark for better contrast */
.navbar-toggler-icon,
.header .navbar-toggler-icon {
  filter: brightness(0) !important;
  opacity: 0.8 !important;
}

/* ============================================
   Infinite Skills Scrolling Carousels
   ============================================ */

/* Prevent carousel animations from causing horizontal scrollbar */
#portfolio {
  overflow: hidden; /* Critical: prevents horizontal overflow from carousel animations */
}

/* ============================================
   Showcase Video Styles
   ============================================ */

/* Video element styling to match the original image display */
.showcase-video {
  width: 100% !important;
  height: 100% !important;
  margin-top: 90px !important;
  max-height: 721px !important;
  object-fit: cover;
  display: block;
  pointer-events: none !important; /* Make video non-interactive */
  user-select: none !important; /* Prevent selection */
  -webkit-user-select: none !important;
}

/* Desktop video styling - match the image behavior */
@media (min-width: 992px) {
  .showcase-video {
    width: auto !important;
  }
}

/* Disable all video controls and interactions */
.showcase-video::-webkit-media-controls {
  display: none !important;
}

.showcase-video::-webkit-media-controls-enclosure {
  display: none !important;
}

.showcase-video::-webkit-media-controls-panel {
  display: none !important;
}

.showcase-video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

.showcase-video::-moz-media-controls {
  display: none !important;
}

/* Prevent context menu on video */
.showcase-video {
  -webkit-touch-callout: none !important;
}

/* Mobile video styling */
@media (max-width: 991px) {
  .rad-showcase__bg--mobile .showcase-video {
    margin-top: 40px !important;
  }
}

/* Styling for the carousel container */
.skills-carousel {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%; /* Ensure carousel respects parent width */
  /* Fade effect on edges */
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Spacing between carousel rows - ADJUST THIS VALUE */
.skills-carousel + .skills-carousel {
  margin-top: 0em; /* Change this value to adjust gap between rows (default was 3em) */
}

/* Spacing adjustments for the carousel section */
#portfolio .row--padded {
  padding-top: 0em; /* Reduce top padding - ADJUST THIS */
  padding-bottom: 0em; /* Reduce bottom padding - ADJUST THIS */
}

/* Styling for the group wrapper that holds the cards */
.skills-group {
  display: flex;
  align-items: center;
  gap: 1.5em;
  animation: spin 15s infinite linear;
  padding-right: 1.5em;
  flex-shrink: 0; /* Prevent groups from shrinking and causing overflow issues */
  will-change: transform; /* Optimize animation performance and prevent reflow */
}

/* RTL variant for right-to-left scrolling */
.skills-group--rtl {
  animation: spin-rtl 15s infinite linear;
}

/* Faster animation on mobile/tablet for better UX */
@media (max-width: 991px) {
  .skills-group {
    animation: spin 12s infinite linear;
  }
  
  .skills-group--rtl {
    animation: spin-rtl 12s infinite linear;
  }
}

/* Styling for individual cards */
.skills-card {
  flex: 0 0 12em; /* ADJUST: Card width (default was 15em) */
  height: 12em; /* ADJUST: Card height (default was 15em) */
  padding: 1em; /* ADJUST: Inner padding (default was 1.5em) */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  outline: none;
}

.skills-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  opacity: 0.7;
  filter: grayscale(20%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none; /* Prevent image drag, let link handle click */
}

/* Hover effects for skills cards */
.skills-card:hover img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.15);
}

/* Keyframes for the infinite scrolling animation (left-to-right, items move left) */
@keyframes spin {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Keyframes for RTL scrolling (right-to-left, items move right) */
@keyframes spin-rtl {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Fix overflow hidden on body that breaks sticky positioning */
/* CRITICAL: sticky positioning requires ancestor elements to NOT have overflow: hidden/auto/scroll */
/* IMPORTANT: CSS spec prevents mixing overflow-x:hidden with overflow-y:visible - browser forces overflow-y to auto */
/* Solution: Body must have visible overflow, control horizontal scroll at section level */

html {
  overflow-x: hidden !important; /* Prevent horizontal scroll on root */
  overflow-y: scroll !important; /* Force scrollbar to prevent layout shift */
  scrollbar-gutter: stable; /* Reserve space for scrollbar */
}

/* Body overflow handled by inline JavaScript in head.html to override theme CSS */

/* Prevent horizontal overflow from carousels on homepage */
/* Apply to sections with carousels, not to body (breaks sticky positioning) */
.rad-showcase,
#portfolio {
  overflow-x: hidden !important; /* Prevent horizontal overflow from carousel animations */
}

/* Ensure project pages don't inherit overflow restrictions */
.project-single {
  overflow: visible; /* Allow sticky positioning on project pages */
}

/* ============================================
   About Section - Image Alignment Fix
   ============================================ */

/* Reduce the negative margin on the about image to bring it closer to text */
@media (min-width: 768px) {
  #about .about__profile-picture img.image-left-overflow {
    margin-left: -30px !important; /* Reduced from -120px to -30px */
  }
}

@media (min-width: 992px) {
  #about .about__profile-picture img.image-left-overflow {
    margin-left: -40px !important; /* Reduced from -120px to -40px */
  }
}

@media (min-width: 1200px) {
  #about .about__profile-picture img.image-left-overflow {
    margin-left: -50px !important; /* Reduced from -120px to -50px */
  }
}

/* Testimonial equal height styling */
.testimonial {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 500px; /* Increased minimum height for better consistency */
}

.testimonial p {
  flex-grow: 1; /* Makes the testimonial content expand to fill available space */
  margin-bottom: 20px;
  line-height: 1.35;
}

.testimonial__author {
  margin-top: auto; /* Pushes author info to bottom */
}

/* Ensure testimonial row has equal height columns */
.row--padded {
  display: flex;
  align-items: stretch;
}

.row--padded .col-md-4 {
  display: flex;
}

/* Responsive adjustments for testimonials */
@media (max-width: 767px) {
  .testimonial {
    min-height: auto;
    margin-bottom: 30px;
  }
  
  .row--padded {
    flex-direction: column;
  }
}

/* Footer navigation centering fix */
@media (min-width: 992px) {
  .footer .container {
    position: relative;
  }
  
  .footer__links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex: none;
  }
  
  .footer__left {
    position: relative;
    z-index: 1;
  }
  
  .footer__right {
    position: relative;
    z-index: 1;
  }
}

/* ============================================
   Project Single Page Styles
   ============================================ */

.project-single {
  padding: 100px 0 50px;
  background-color: #fff;
  margin-top: 30px;
}

@media (max-width: 991px) {
  .project-single {
    padding-top: 50px;
  }
}

@media (max-width: 767px) {
  .project-single {
    padding-top: 30px;
    padding-bottom: 30px;
    margin-top: 80px; /* Add space for mobile header to avoid overlap */
  }
}

/* Share Sidebar */
.project-single .share-now {
  position: -webkit-sticky;
  position: sticky;
  top: 120px; /* Stick below the navigation with comfortable spacing */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Removed align-self: flex-start to allow sticky to work properly */
  z-index: 10; /* Ensure it stays above other content */
  padding-right: 20px; /* Add spacing from the main content */
  margin-top: 10px; /* Small top margin for visual balance */
}

@media (max-width: 991px) {
  .project-single .share-now {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 30px;
    padding: 15px 0;
    flex-wrap: wrap;
  }
}

.project-single .share-label {
  position: relative;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 60px;
  display: inline-block;
}

@media (max-width: 991px) {
  .project-single .share-label {
    margin-bottom: 0;
    margin-right: 25px;
  }
}

.project-single .share-label::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 50px;
  background: #e8e8e8;
  left: 50%;
  bottom: -55px;
  transform: translateX(-50%);
}

@media (max-width: 991px) {
  .project-single .share-label::after {
    width: 1px;
    height: 40px;
    left: auto;
    right: -15px;
    bottom: 50%;
    transform: translateY(50%);
  }
}

.project-single .share-icons ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (max-width: 991px) {
  .project-single .share-icons ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
}

.project-single .share-icons li {
  margin-bottom: 15px;
}

@media (max-width: 991px) {
  .project-single .share-icons li {
    margin-bottom: 0;
  }
}

.project-single .share-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 1px solid #e8e8e8;
  border-radius: 50%;
  color: #1a1a1a;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-single .share-icons a:hover {
  background-color: #2d2d2d;
  border-color: #2d2d2d;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Project Content */
.project-single .project-content {
  padding: 0 60px;
}

@media (max-width: 991px) {
  .project-single .project-content {
    padding: 0 30px;
  }
}

@media (max-width: 767px) {
  .project-single .project-content {
    padding: 0;
  }
}

/* Project Header */
.project-single .project-header {
  margin-bottom: 50px;
}

.project-single .project-category {
  display: inline-block;
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.project-single .project-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 30px;
}

@media (max-width: 991px) {
  .project-single .project-title {
    font-size: 38px;
  }
}

@media (max-width: 767px) {
  .project-single .project-title {
    font-size: 32px;
  }
}

@media (max-width: 575px) {
  .project-single .project-title {
    font-size: 28px;
  }
}

/* Project Meta */
.project-single .project-meta ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
  font-size: 14px;
  color: #666;
}

@media (max-width: 575px) {
  .project-single .project-meta ul {
    flex-direction: column;
    gap: 10px;
  }
}

.project-single .project-meta li {
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-single .project-meta strong {
  color: #1a1a1a;
  font-weight: 600;
}

/* Technologies */
.project-single .project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.project-single .tech-tag {
  display: inline-block;
  background-color: #fafafa;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
}

.project-single .tech-tag:hover {
  background-color: #2d2d2d;
  color: #ffffff;
  border-color: #2d2d2d;
}

/* Feature Image */
.project-single .project-feature-image {
  margin: 0 -60px 50px;
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 991px) {
  .project-single .project-feature-image {
    margin: 0 -30px 40px;
  }
}

@media (max-width: 767px) {
  .project-single .project-feature-image {
    margin: 0 0 30px;
  }
}

.project-single .project-feature-image img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Project Body Content */
.project-single .project-body {
  font-size: 16px;
  line-height: 1.8;
  color: #4a4a4a;
}

.project-single .project-body h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 50px;
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  .project-single .project-body h2 {
    font-size: 26px;
    margin-top: 35px;
  }
}

.project-single .project-body h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 35px;
  margin-bottom: 15px;
}

@media (max-width: 767px) {
  .project-single .project-body h3 {
    font-size: 20px;
    margin-top: 25px;
  }
}

.project-single .project-body h4 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 25px;
  margin-bottom: 12px;
}

.project-single .project-body p {
  margin-bottom: 20px;
}

.project-single .project-body ul,
.project-single .project-body ol {
  margin-bottom: 25px;
  padding-left: 25px;
}

.project-single .project-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.project-single .project-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.project-single .project-body blockquote {
  position: relative;
  background-color: #fafafa;
  border-left: 4px solid #2d2d2d;
  padding: 30px 40px;
  margin: 40px 0;
  font-size: 18px;
  font-style: italic;
  color: #4a4a4a;
}

@media (max-width: 767px) {
  .project-single .project-body blockquote {
    padding: 20px 25px;
    font-size: 16px;
    margin: 30px 0;
  }
}

.project-single .project-body blockquote p:last-child {
  margin-bottom: 0;
}

.project-single .project-body code {
  background-color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #2d2d2d;
}

.project-single .project-body pre {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 25px 0;
}

.project-single .project-body pre code {
  background-color: transparent;
  padding: 0;
  color: #4a4a4a;
}

/* Project Navigation */
.project-single .project-navigation {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e8e8e8;
}

@media (max-width: 767px) {
  .project-single .project-navigation {
    margin-top: 40px;
    padding-top: 30px;
  }
}

.project-single .nav-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 767px) {
  .project-single .nav-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.project-single .nav-prev {
  text-align: left;
}

.project-single .nav-next {
  text-align: right;
  grid-column: 2;
}

@media (max-width: 767px) {
  .project-single .nav-prev,
  .project-single .nav-next {
    text-align: center;
    grid-column: 1;
  }
}

.project-single .nav-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-single .nav-link:hover {
  border-color: #2d2d2d;
  background-color: #fafafa;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Disabled navigation link (no prev/next available) */
.project-single .nav-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background-color: #fafafa;
}

.project-single .nav-link.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: #e8e8e8;
  background-color: #fafafa;
}

.project-single .nav-direction {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
}

.project-single .nav-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.project-single .nav-link.disabled .nav-title {
  color: #999;
}

/* Ensure sidebar column is as tall as content column for sticky to work */
.project-single .row {
  align-items: stretch; /* Changed from flex-start to stretch so columns have equal height */
}

/* Make the share sidebar column stretch to full height */
.project-single .col-lg-2 {
  display: flex;
  flex-direction: column;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .project-single .col-lg-2 {
    order: 2;
    margin-top: 30px;
  }
  
  .project-single .col-lg-10 {
    order: 1;
  }
}

/* ============================================
   Published Articles Grid Styling
   ============================================ */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

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

.article-card {
  background-color: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 18px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-publication {
  display: flex;
  align-items: center;
}

.pub-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 16px;
  background-color: #1a1a1a;
  color: #ffffff;
}

.pub-badge.pub-mpa {
  background-color: #2d2d2d;
}

.pub-badge.pub-adviser {
  background-color: #4a4a4a;
}

.pub-badge.pub-broker {
  background-color: #666666;
}

.article-card .article-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  flex-grow: 1;
}

.article-card .article-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-card .article-title a:hover {
  color: #2d2d2d;
  text-decoration: underline;
}

.article-description {
  font-size: 12px;
  color: #666666;
  margin: 0;
  font-style: italic;
}

.articles-note {
  text-align: center;
  font-size: 13px;
  color: #666666;
  margin-top: 25px;
}

/* Publication Logo Styling */
.pub-logo {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 3px;
}

/* ===== Projects List Page Styles ===== */
.projects-list {
  margin-top: 50px;
}

.project-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.project-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.project-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 16/10;
}

.project-item-content {
  padding-left: 30px;
}

.project-category {
  display: inline-block;
  background-color: #f5f5f5;
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 15px;
  border: 1px solid #e8e8e8;
}

.project-item h3 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 15px;
}

.project-item h3 a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-item h3 a:hover {
  color: #4a4a4a;
}

.project-item p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.tech-tag {
  display: inline-block;
  background-color: #fafafa;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 15px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background-color: #2d2d2d;
  color: #ffffff;
  border-color: #2d2d2d;
}

.project-item .btn-primary {
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.project-item .btn-primary:hover {
  background-color: #2d2d2d;
  transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .project-item {
    padding: 30px;
  }
  
  .project-item-content {
    padding-left: 0;
    margin-top: 25px;
  }
  
  .project-item h3 {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .projects-list {
    margin-top: 30px;
  }
  
  .project-item {
    padding: 25px;
    margin-bottom: 30px;
  }
  
  .project-item h3 {
    font-size: 20px;
  }
  
  .project-item p {
    font-size: 14px;
  }
}

@media (max-width: 575px) {
  .project-item {
    padding: 20px;
  }
  
  .project-item h3 {
    font-size: 18px;
  }
}

/* ============================================
   Contact Form Response Styles
   ============================================ */

.form-response {
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  margin-top: 10px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-response--success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-response--error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
  .form-response {
    font-size: 14px;
    padding: 14px 16px;
  }
}

/* ============================================
   Experience Section - Mobile Button Spacing
   ============================================ */

/* Add gap between stacked buttons on mobile */
@media (max-width: 767px) {
  #experience .btn + .btn {
    margin-top: 15px !important;
  }
}
