/* ═══ Master Profile Page ═══ */

/* ── PROFILE HERO ── */
.profile-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--blush-light) 0%, var(--blush) 50%, #E4CFC7 100%);
}
.profile-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(201,146,138,0.25) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(196,166,125,0.2) 0%, transparent 50%);
}
.profile-hero-inner {
    max-width: 1440px; margin: 0 auto; padding: 48px 32px 0;
    position: relative; z-index: 1;
    display: flex; align-items: flex-end; gap: 32px;
}
.profile-avatar-wrap {
    flex-shrink: 0; position: relative; margin-bottom: -40px;
}
.profile-avatar {
    width: 140px; height: 140px; border-radius: 50%;
    border: 4px solid var(--warm-white);
    box-shadow: var(--shadow-lg); overflow: hidden; background: var(--blush);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 48px; font-weight: 600;
    color: var(--warm-white); background: var(--warm-brown);
}
.profile-verified-badge {
    position: absolute; bottom: 4px; right: 4px;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--green); color: #fff;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid var(--warm-white); box-shadow: var(--shadow-sm);
}
.profile-verified-badge svg { width: 18px; height: 18px; }

.profile-hero-info {
    flex: 1; padding-bottom: 28px; min-width: 0;
}
.profile-name {
    font-family: var(--font-display); font-size: 38px; font-weight: 700;
    color: var(--warm-brown); line-height: 1.15; letter-spacing: -0.3px;
}
.profile-role {
    font-size: 15px; color: var(--text-muted); font-weight: 400; margin-top: 4px;
}
.profile-location {
    display: flex; align-items: center; gap: 5px;
    font-size: 13.5px; color: var(--text-muted); margin-top: 8px;
}
.profile-location svg { width: 15px; height: 15px; flex-shrink: 0; }

.profile-hero-actions {
    flex-shrink: 0; padding-bottom: 28px;
    display: flex; gap: 10px;
}
.hero-action-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: 100px;
    font-family: var(--font-body); font-size: 14px; font-weight: 500;
    cursor: pointer; text-decoration: none; transition: var(--transition);
    border: 1.5px solid var(--border); background: var(--warm-white); color: var(--text);
}
.hero-action-btn svg { width: 17px; height: 17px; }
.hero-action-btn:hover { border-color: var(--rose); color: var(--burgundy); }
.hero-action-btn--primary {
    background: var(--warm-brown); color: var(--warm-white); border-color: var(--warm-brown);
}
.hero-action-btn--primary:hover { background: var(--burgundy); border-color: var(--burgundy); }

/* ── TABS NAV ── */
.profile-tabs-bar {
    background: var(--warm-white); border-bottom: 1px solid var(--border);
    position: sticky; top: 72px; z-index: 50;
}
.profile-tabs-inner {
    max-width: 1440px; margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; gap: 0;
}
.profile-tab {
    padding: 16px 24px; font-size: 14px; font-weight: 500;
    color: var(--text-muted); text-decoration: none;
    border-bottom: 2.5px solid transparent;
    transition: var(--transition); cursor: pointer;
    background: none; border-top: none; border-left: none; border-right: none;
    font-family: var(--font-body);
}
.profile-tab:hover { color: var(--text); }
.profile-tab.active {
    color: var(--warm-brown); border-bottom-color: var(--rose-deep); font-weight: 600;
}
.profile-tab-count {
    font-size: 12px; color: var(--text-light); font-weight: 400; margin-left: 4px;
}

/* ── PAGE CONTENT ── */
.profile-content {
    max-width: 1440px; margin: 0 auto; padding: 40px 32px 80px;
}

/* ── STATS ROW ── */
.stats-row {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
    margin-bottom: 40px;
}
.stat-card {
    background: var(--warm-white); border-radius: var(--radius);
    padding: 22px 20px; text-align: center;
    border: 1px solid var(--border); transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-num {
    font-family: var(--font-display); font-size: 32px; font-weight: 700;
    color: var(--warm-brown); line-height: 1;
}
.stat-label {
    font-size: 12.5px; color: var(--text-muted); margin-top: 4px; font-weight: 400;
}

/* ── SECTION HEADINGS ── */
.section { margin-bottom: 48px; }
.section-heading {
    font-family: var(--font-display); font-size: 26px; font-weight: 600;
    color: var(--warm-brown); margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
}
.section-heading-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--blush-light); display: flex; align-items: center;
    justify-content: center; color: var(--rose-deep); flex-shrink: 0;
}
.section-heading-icon svg { width: 17px; height: 17px; }

/* ── ABOUT + CONTACTS ── */
.about-grid {
    display: grid; grid-template-columns: 1fr 380px; gap: 32px;
}
.about-text {
    font-size: 15px; line-height: 1.8; color: var(--text); font-weight: 300;
}
.about-text p + p { margin-top: 14px; }

.contact-card {
    background: var(--warm-white); border-radius: var(--radius);
    padding: 28px; border: 1px solid var(--border);
    align-self: start;
}
.contact-card-title {
    font-family: var(--font-display); font-size: 20px; font-weight: 600;
    color: var(--warm-brown); margin-bottom: 20px;
}
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
    display: flex; align-items: center; gap: 14px;
    text-decoration: none; color: var(--text);
    font-size: 14px; font-weight: 400; transition: var(--transition);
}
.contact-item:hover { color: var(--rose-deep); }
.contact-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--blush-light); display: flex; align-items: center;
    justify-content: center; color: var(--rose-deep); flex-shrink: 0;
    transition: var(--transition);
}
.contact-item:hover .contact-icon { background: var(--blush); }
.contact-icon svg { width: 18px; height: 18px; }
.contact-label { font-size: 11px; color: var(--text-light); display: block; font-weight: 500; letter-spacing: 0.03em; }
.contact-value { display: block; margin-top: 1px; }

.contact-map {
    margin-top: 20px; border-radius: var(--radius-sm); overflow: hidden;
    height: 160px; background: var(--blush-light); position: relative;
    border: 1px solid var(--border);
}
.contact-map-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 6px; color: var(--text-light); font-size: 13px;
}
.contact-map-placeholder svg { width: 24px; height: 24px; color: var(--rose); }

/* ── SERVICES ── */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px;
}
.service-card {
    background: var(--warm-white); border-radius: var(--radius);
    padding: 24px; border: 1px solid var(--border);
    transition: var(--transition); position: relative; overflow: hidden;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: linear-gradient(to bottom, var(--rose), var(--gold));
    border-radius: 0 4px 4px 0; opacity: 0; transition: var(--transition);
}
.service-card:hover::before { opacity: 1; }
.service-name {
    font-family: var(--font-display); font-size: 19px; font-weight: 600;
    color: var(--warm-brown); margin-bottom: 6px;
}
.service-desc {
    font-size: 13.5px; color: var(--text-muted); font-weight: 300;
    line-height: 1.55; margin-bottom: 14px;
}
.service-footer {
    display: flex; align-items: center; justify-content: space-between;
}
.service-price {
    font-family: var(--font-display); font-size: 22px; font-weight: 700;
    color: var(--warm-brown);
}
.service-price small { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.service-duration {
    display: flex; align-items: center; gap: 5px;
    font-size: 12.5px; color: var(--text-light); font-weight: 400;
}
.service-duration svg { width: 14px; height: 14px; }

/* ── PORTFOLIO ── */
.portfolio-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.portfolio-item {
    position: relative; aspect-ratio: 1; border-radius: var(--radius);
    overflow: hidden; cursor: pointer; background: var(--blush-light);
}
.portfolio-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(61,43,43,0.6) 0%, transparent 50%);
    opacity: 0; transition: opacity 0.3s ease;
    display: flex; align-items: flex-end; padding: 16px;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay-text {
    color: #fff; font-size: 14px; font-weight: 500;
}
.portfolio-item--tall { grid-row: span 2; aspect-ratio: auto; }

/* ── WORKS GRID ── */
.works-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.work-card {
    background: var(--warm-white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    text-decoration: none; color: inherit;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.work-card-img {
    aspect-ratio: 3 / 4; overflow: hidden; background: var(--blush-light);
}
.work-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.work-card:hover .work-card-img img { transform: scale(1.05); }
.work-card-body { padding: 12px 14px 14px; }
.work-card-title {
    font-family: var(--font-display); font-size: 16px; font-weight: 600;
    color: var(--warm-brown); margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.work-card-stats {
    display: flex; align-items: center; gap: 10px;
    font-size: 12px; color: var(--text-light);
}
.work-card-stat {
    display: flex; align-items: center; gap: 3px;
}
.work-card-stat svg { width: 13px; height: 13px; }

/* ── REVIEWS ── */
.reviews-list { display: flex; flex-direction: column; gap: 0; }
.review {
    display: flex; gap: 16px; padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.review:first-child { padding-top: 0; }
.review:last-child { border-bottom: none; }
.review-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--blush); overflow: hidden; flex-shrink: 0;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-content { flex: 1; min-width: 0; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.review-author { font-size: 14px; font-weight: 600; color: var(--warm-brown); }
.review-date { font-size: 12px; color: var(--text-light); }
.review-stars { display: flex; gap: 2px; margin-bottom: 6px; }
.review-star { width: 15px; height: 15px; color: var(--gold); }
.review-star--empty { color: var(--border); }
.review-body { font-size: 14px; color: var(--text); line-height: 1.65; font-weight: 300; }

/* ── ANIMATIONS ── */
.stat-card, .service-card, .portfolio-item, .work-card {
    opacity: 0; animation: fadeUp 0.45s ease both;
}

/* ── RESPONSIVE: ULTRAWIDE ── */
@media (min-width: 1600px) {
    .works-grid { grid-template-columns: repeat(5, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .about-grid { grid-template-columns: 1fr; }
    .works-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .profile-hero-inner { flex-direction: column; align-items: center; text-align: center; padding: 32px 24px 0; gap: 16px; }
    .profile-hero-actions { padding-bottom: 20px; }
    .profile-name { font-size: 30px; }
    .profile-tabs-inner { overflow-x: auto; scrollbar-width: none; gap: 0; }
    .profile-tabs-inner::-webkit-scrollbar { display: none; }
    .profile-tab { padding: 14px 18px; white-space: nowrap; font-size: 13px; }
    .stats-row { grid-template-columns: repeat(3, 1fr); }
    .works-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-item--tall { grid-row: span 1; aspect-ratio: 1; }
    .profile-content { padding: 28px 20px 60px; }
}
@media (max-width: 600px) {
    .profile-avatar { width: 110px; height: 110px; }
    .profile-name { font-size: 26px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .works-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .portfolio-grid { gap: 8px; }
    .profile-hero-actions { flex-wrap: wrap; justify-content: center; }
    .hero-action-btn { font-size: 13px; padding: 9px 16px; }
}
