/**
 * Profile & Portfolio Section Styles
 * Stripe-inspired minimal design with subtle gradients
 */

/* ===========================
   Section Container & Layout
   =========================== */

.profile-section {
    position: relative;
    min-height: 100vh;
    padding: 4rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 50%, #ffffff 100%);
    overflow: hidden;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* ===========================
   Section Header
   =========================== */

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(1, 122, 202, 0.08);
    border: 1px solid rgba(1, 122, 202, 0.2);
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #017ACA;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #0f172a;
    margin: 0 0 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #017ACA 0%, #0096E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* ===========================
   Feature Grid
   =========================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

/* Feature Trio - Three cards in a row with center pop */
.feature-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    grid-column: 1 / -1;
}

.feature-card--trio {
    z-index: 1;
    display: grid;
    grid-template-rows: 320px auto;
}

.feature-card--trio .feature-card__visual {
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
}

.feature-card--trio .visual-container {
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card--trio .reviews-mockup,
.feature-card--trio .services-mockup,
.feature-card--trio .posts-mockup {
    max-height: 280px;
    overflow: hidden;
}

.feature-card--trio .feature-card__content {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 0.75rem;
}

.feature-card--trio .feature-icon {
    align-self: start;
}

.feature-card--trio .feature-title {
    align-self: start;
}

.feature-card--trio .feature-description {
    align-self: start;
}

.feature-card--trio .feature-list--grid {
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: flex-start;
}

.feature-card--trio.feature-card--featured {
    z-index: 10;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
    border-color: #017ACA;
}

.feature-card--trio .feature-list--grid .feature-list-item {
    margin: 0;
    width: 100%;
    justify-content: flex-start;
}

/* ===========================
   Feature Cards
   =========================== */

.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12), 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(1, 122, 202, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(1, 122, 202, 0.3);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12), 0 2px 4px rgba(15, 23, 42, 0.08);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card--primary {
    grid-column: span 2;
    flex-direction: row;
    gap: 3rem;
}

.feature-card--primary .feature-card__visual,
.feature-card--primary .feature-card__content {
    flex: 1;
}

/* ===========================
   Feature Visual Container
   =========================== */

.feature-card__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.visual-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.glow--primary {
    background: radial-gradient(circle, rgba(1, 122, 202, 0.12) 0%, transparent 70%);
}

.glow--secondary {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.glow--accent {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
}

.glow--success {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* ===========================
   Profile Mockup
   =========================== */

.profile-mockup {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.profile-mockup--compact .profile-banner {
    height: 80px;
}

.profile-mockup--compact .profile-info {
    padding: 2rem 1.5rem 1.25rem;
}

.profile-mockup--compact .profile-tags {
    display: none;
}

.profile-header {
    position: relative;
}

.profile-banner {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #017ACA 0%, #0096E5 100%);
}

.profile-avatar-container {
    position: absolute;
    bottom: -30px;
    left: 1.5rem;
    display: flex;
    align-items: flex-end;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #017ACA;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.verification-badge {
    position: absolute;
    bottom: 2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.75rem;
}

.profile-info {
    padding: 2.5rem 1.5rem 1.5rem;
}

.profile-name-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge--verified {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge--pro {
    background: linear-gradient(135deg, #017ACA 0%, #0096E5 100%);
    color: #ffffff;
}

.profile-bio {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0 0 1rem;
}

.profile-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: #e2e8f0;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.375rem 0.75rem;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #475569;
    font-weight: 500;
}

/* ===========================
   Portfolio Mockup
   =========================== */

.portfolio-mockup {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 0.75rem;
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.5rem;
    height: 180px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.gallery-item--large .gallery-image i {
    font-size: 2.5rem;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.gallery-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
}

.portfolio-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98), transparent);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.portfolio-project-name {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.portfolio-project-type {
    font-size: 0.8125rem;
    color: #64748b;
}

.portfolio-stats-bar {
    display: flex;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    gap: 2rem;
}

.portfolio-stat {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.portfolio-stat .stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.portfolio-stat .stat-text {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===========================
   Reviews Mockup
   =========================== */

.reviews-mockup {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reviews-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.score-stars {
    color: #f59e0b;
    font-size: 1.25rem;
    letter-spacing: 0.125rem;
}

.score-label {
    font-size: 0.875rem;
    color: #64748b;
}

.review-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #fafbfc;
    border-radius: 8px;
    border-left: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.review-item:hover {
    border-left-color: #017ACA;
    background: #f8fafc;
}

.review-quote {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #475569;
    font-style: italic;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.review-author-name {
    font-weight: 600;
    color: #0f172a;
}

.review-divider {
    color: #cbd5e1;
}

.review-time {
    color: #94a3b8;
}

/* ===========================
   Services Mockup
   =========================== */

.services-mockup {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.875rem;
    background: #fafbfc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.service-row:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.service-row--featured {
    background: linear-gradient(135deg, rgba(1, 122, 202, 0.03), rgba(0, 150, 229, 0.05));
    border-color: rgba(1, 122, 202, 0.15);
}

.service-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.service-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

.service-description {
    font-size: 0.75rem;
    color: #64748b;
}

.service-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.service-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
}

.service-badge-pill {
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

/* ===========================
   Posts & Recommendations Mockup
   =========================== */

.posts-mockup {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow: hidden;
}

.activity-card {
    padding: 1rem 1.25rem;
    background: #fafbfc;
    border-radius: 8px;
    border-left: 2px solid #017ACA;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
}

.activity-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #0f172a;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.activity-author {
    font-weight: 600;
    color: #475569;
}

.activity-divider {
    color: #cbd5e1;
}

.activity-time {
    color: #94a3b8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
}

.stat-box {
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 0.875rem 0.625rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
    min-width: 0;
    overflow: hidden;
}

.stat-box:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.stat-box--highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.08));
    border-color: rgba(16, 185, 129, 0.2);
}

.stat-box-number {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.stat-box--highlight .stat-box-number {
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-box-label {
    font-size: 0.6875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.glow--warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

/* ===========================
   Feature Card Content
   =========================== */

.feature-card__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 122, 202, 0.1);
    border-radius: 12px;
    color: #017ACA;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #475569;
}

.list-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===========================
   Section CTA
   =========================== */

.section-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(1, 122, 202, 0.05);
    border: 1px solid rgba(1, 122, 202, 0.15);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(1, 122, 202, 0.3), transparent);
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 0.75rem;
}

.cta-description {
    font-size: 1.125rem;
    color: #475569;
    margin: 0 0 2rem;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button--primary {
    background: linear-gradient(135deg, #017ACA 0%, #0096E5 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(1, 122, 202, 0.3);
}

.cta-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(1, 122, 202, 0.4);
}

.cta-button--secondary {
    background: #ffffff;
    color: #017ACA;
    border: 1px solid #e2e8f0;
}

.cta-button--secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* ===========================
   Background Elements
   =========================== */

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 1;
    animation: floatOrb 20s ease-in-out infinite;
}

.bg-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(1, 122, 202, 0.12) 0%, transparent 70%);
    top: 25%;
    left: -200px;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 150, 229, 0.10) 0%, transparent 70%);
    bottom: 25%;
    right: -150px;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ===========================
   Animations
   =========================== */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1024px) {
    .feature-card--primary {
        grid-column: span 1;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .profile-section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .feature-trio {
        grid-template-columns: 1fr;
    }

    .feature-card--trio {
        display: flex;
        flex-direction: column;
    }

    .feature-card--trio .feature-card__visual {
        height: auto;
        min-height: 280px;
    }

    .feature-card--trio .feature-card__content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .feature-card--trio.feature-card--featured {
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    }

    .feature-card--trio .feature-list--grid {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .feature-card--trio .feature-list--grid .feature-list-item {
        justify-content: flex-start;
        text-align: left;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card--primary {
        grid-column: span 1;
    }

    .feature-card__visual {
        min-height: 240px;
    }

    .profile-mockup,
    .portfolio-mockup,
    .reviews-mockup,
    .services-mockup {
        max-width: 100%;
    }

    .section-cta {
        padding: 2.5rem 1.5rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 1rem;
    }

    .section-eyebrow {
        font-size: 0.8125rem;
        padding: 0.375rem 0.875rem;
    }

    .feature-title {
        font-size: 1.25rem;
    }

    .feature-description {
        font-size: 0.9375rem;
    }

    .feature-list-item {
        font-size: 0.875rem;
    }
}

