/* =======================================================================
   ENHANCED STYLES FOR BETTER APPEARANCE
   ======================================================================= */

/* Modern color scheme */
:root {
    --primary-color: #2563eb;       /* Main blue */
    --secondary-color: #64748b;     /* Text gray */
    --accent-color: #f1f5f9;        /* Light background */
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
}

/* Improved header with your required color */
.portfolio-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Keep your color */
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.portfolio-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.portfolio-header-box {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Enhanced profile picture */
.profile-picture-cell {
    width: 120px;
    height: 120px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Improved text block */
.text-block h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-block .stat-item {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.text-block .stat-item i {
    margin-right: 0.5rem;
    opacity: 0.9;
}

/* Enhanced breadcrumbs */
.breadcrumbs {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.2rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #64748b;
}

.breadcrumbs li:not(:last-child)::after {
    content: ">";
    margin: 0 1rem;
    color: #94a3b8;
    font-weight: 300;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.breadcrumbs li:last-child {
    color: #1e293b;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    margin-left: 0.5rem;
}

.breadcrumbs li:last-child::after {
    content: none;
}

/* Enhanced highlight cards for new fields */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

/* --- Fix Availability & Portfolio Status cards to match the rest --- */

/* Make all highlight-cards consistent */
.highlight-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Make the inner status badges sit nicely */
.highlight-card .status-badge {
  margin-top: .75rem;
  font-size: .85rem;
  padding: .35rem .75rem;
  border-radius: 20px;
}

/* Align icons consistently with text */
.highlight-card i {
  display: block;
  font-size: 1.8rem;
  margin-bottom: .5rem;
  color: inherit; /* inherit the card's color */
}


.highlight-card.availability,
.highlight-card.visibility {
  background: var(--accent-color);
  border: 1px solid var(--border-color);
  box-shadow: none;
  padding: 0.8rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: #374151;
  transition: all 0.3s ease;
  min-height: auto;
  text-align: left;
}

.highlight-card.availability:hover,
.highlight-card.visibility:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(5px);
  border-color: var(--primary-color);
}

/* Compact icon styling */
.highlight-card.availability i,
.highlight-card.visibility i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  margin-bottom: 0;
  color: inherit;
}

/* Stacked label and value - more compact */
.highlight-card.availability .highlight-content,
.highlight-card.visibility .highlight-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.highlight-card.availability .highlight-label,
.highlight-card.visibility .highlight-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: inherit;
  margin-bottom: 0.1rem;
  opacity: 0.8;
}

.highlight-card.availability .highlight-value,
.highlight-card.visibility .highlight-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: inherit;
  line-height: 1.2;
}

/* Remove status badges completely for minimal look */
.highlight-card.availability .status-badge,
.highlight-card.visibility .status-badge {
  display: none;
}

/* Specific icon colors that change on hover */
.highlight-card.availability i { color: #10b981; }
.highlight-card.visibility i { color: #6366f1; }

.highlight-card.availability:hover i,
.highlight-card.visibility:hover i {
  color: white !important;
}


/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.status-available {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-soon {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-private {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Main Content Grid */
.portfolio-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.portfolio-description-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.portfolio-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Improved section titles */
.section-title {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.section-title i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Job Description */
.portfolio-description {
    line-height: 1.7;
    color: var(--text-dark);
}

.portfolio-description p {
    margin-bottom: 1rem;
}

.portfolio-description ul, .portfolio-description ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.portfolio-description li {
    margin-bottom: 0.5rem;
}

/* Enhanced cards */
.sidebar-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i {
    color: var(--primary-color);
}

/* Job Type & Work Type Grid Styles */
.portfolio-type-grid,
.work-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.portfolio-type-item,
.work-type-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--accent-color);
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.portfolio-type-item:hover,
.work-type-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.portfolio-type-item i,
.work-type-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Icons for different job types */
.portfolio-type-item[data-type="full_time"] i { color: #10b981; }
.portfolio-type-item[data-type="part_time"] i { color: #f59e0b; }
.portfolio-type-item[data-type="contract"] i { color: #8b5cf6; }
.portfolio-type-item[data-type="freelance"] i { color: #ef4444; }
.portfolio-type-item[data-type="internship"] i { color: #06b6d4; }

.portfolio-type-item:hover i,
.work-type-item:hover i {
    color: white !important;
}

/* Icons for work types */
.work-type-item[data-type="remote"] i { color: #10b981; }
.work-type-item[data-type="hybrid"] i { color: #f59e0b; }
.work-type-item[data-type="office-based"] i { color: #6366f1; }

/* Improved tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

/* Enhanced gallery */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Improved social media grid */
.social-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
}

.social-platform {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--accent-color);
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
}

.social-platform:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* Enhanced contact section */
.contact-info {
    background: var(--accent-color);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.contact-info p {
    margin-bottom: 0.8rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

.alert-warning a {
    color: #dc2626;
    font-weight: 500;
}

/* Enhanced lightbox */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95); /* Changed to translucent white */
    display: none;
    justify-content: center;  /* Centers horizontally */
    align-items: center;      /* Centers vertically */
    z-index: 1000;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    /* Ensure the image itself is centered */
    display: block;
    margin: 0 auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #333; /* Dark color for better contrast on white */
    font-size: 40px;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above the background */
}

.lightbox-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2); /* Darker background for visibility on white */
    border: none;
    color: #333; /* Dark color for buttons */
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1001; /* Ensure buttons are above background */
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* Optional: Add a subtle shadow to the image for better separation */
.lightbox-image {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive breadcrumbs */
@media (max-width: 768px) {
    .portfolio-header {
        padding: 1.5rem;
        text-align: center;
    }

    .portfolio-header-box {
        flex-direction: column;
        gap: 1rem;
    }

    .profile-picture-cell {
        width: 100px;
        height: 100px;
    }

    .text-block h1 {
        font-size: 2rem;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .social-media-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .breadcrumbs {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .breadcrumbs ul {
        gap: 0.3rem;
    }

    .breadcrumbs li {
        font-size: 0.9rem;
    }

    .breadcrumbs li:not(:last-child)::after {
        margin: 0 0.7rem;
    }

    .breadcrumbs a {
        padding: 0.3rem 0.6rem;
    }

    .breadcrumbs li:last-child {
        padding: 0.3rem 0.6rem;
        margin-left: 0.3rem;
    }

	.portfolio-description-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 100%;      /* prevent child overflow */
  overflow: hidden;     /* clip any weird floating child */
}
.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-left: 0.5rem;
}

.location-chip {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}
	
.portfolio-description {
  line-height: 1.7;
  color: var(--text-dark);
  max-width: 80%;              /* don’t exceed parent width */
  box-sizing: border-box;        /* include padding/borders in width */
  overflow-wrap: break-word;     /* modern word break */
  word-wrap: break-word;         /* legacy support */
  white-space: normal;           /* allow wrapping */
}
	.section-title {
		max-width: 80%;
	}
.sidebar-card {
  /* responsive fixes for sidebar card */
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
}

.portfolio-promo-box {
  /* responsive fixes for portfolio promo box */
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
}


}

	.portfolio-promo-box {
  margin-top: 20px;
  padding: 16px;
  border: 2px dashed #7c3aed;
  border-radius: 10px;
  background: #f9f5ff;
  text-align: center;
}
.portfolio-promo-box h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #5b21b6;
}
.portfolio-promo-box p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #374151;
}
.create-portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #7c3aed;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.create-portfolio-btn:hover {
  background: #5b21b6;
}
/* Key Information Grid in Sidebar */
.key-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.key-info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--accent-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.key-info-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.key-info-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.key-info-item:hover i {
    color: white;
}

.key-info-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.key-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.1rem;
}

.key-info-value {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Status indicators */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.7rem;
}

.status-indicator.available {
    background: #10b981;
    color: white;
}

.status-indicator.public {
    background: #3b82f6;
    color: white;
}

.status-indicator.private {
    background: #f59e0b;
    color: white;
}
	
/* === Share Buttons === */
.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.share-btn i {
  font-size: 1rem;
}

.share-btn.linkedin { background: #0A66C2; }
.share-btn.twitter { background: #000000; }
.share-btn.facebook { background: #1877F2; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.copy { background: #6B7280; }

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* =======================================================================
   ENHANCED HORIZONTAL STAT ITEMS - ALL IN ONE LINE
   ======================================================================= */

/* Improved stat items - everything in one line */
.stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Icon styling */
.stat-item i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    min-width: 20px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Stat label styling - now inline with chips */
.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    margin-right: 0.5rem;
}

/* Enhanced chips group - inline with label */
.chips-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

.chips-group::-webkit-scrollbar {
    height: 4px;
}

.chips-group::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 2px;
}

.chips-group::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.chips-group::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Enhanced chip styles */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.chip::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.5s;
}

.chip:hover::before {
    left: 100%;
}

.chip--position {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.chip--location {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.chip i {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Chip badges */
.chip-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    font-weight: 700;
    margin-left: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Enhanced experience text - also inline */
.stat-item--experience .stat-text {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(139, 92, 246, 0.9));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* Remove the containers since we don't need them anymore */
.positions-container,
.locations-container {
    display: contents; /* This makes children act as direct children of stat-item */
}

/* Status badge enhancement */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.status-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.status-private {
    color: rgba(255, 255, 255, 0.95);
}

.status-private i {
    color: #fbbf24;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .stat-item {
        padding: 0.7rem 0.8rem;
        margin-bottom: 0.8rem;
        gap: 0.6rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
        margin-right: 0.3rem;
    }
    
    .chip {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .chip-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
    
    .stat-item i {
        font-size: 1rem;
    }
    
    .stat-item--experience .stat-text {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}



/* Smooth scrolling behavior */
.chips-group {
    scroll-behavior: smooth;
}



.stat-item:focus-within {
    border-color: rgba(255, 255, 255, 0.4);
}

/* =======================================================================
   MOBILE HEADER FIXES
   ======================================================================= */

@media (max-width: 768px) {
    .portfolio-header {
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .portfolio-header-box {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .profile-picture-cell {
        width: 100px;
        height: 100px;
    }

    .text-block h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    /* MOBILE-SPECIFIC POSITION & LOCATION STYLES */
    .stat-item {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        text-align: center;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.1);
		backdrop-filter: none;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .stat-label {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        display: block;
    }

    /* Stack chips vertically on mobile */
    .chips-group {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        max-width: 280px;
    }

    .chip {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* Remove horizontal scroll on mobile */
    .chips-group {
        overflow-x: visible;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .portfolio-header {
        padding: 1rem;
    }

    .text-block h1 {
        font-size: 1.5rem;
    }

    .profile-picture-cell {
        width: 80px;
        height: 80px;
    }

    .stat-item {
        padding: 0.8rem;
    }

    .chip {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
}