/* pro-mode.css - Corporate SaaS Portfolio Overlay */
:root {
    --pro-blue: #2563EB;
    --pro-blue-hover: #1D4ED8;
    --pro-bg: #F8FAFC;
    --pro-text-main: #0F172A;
    --pro-text-muted: #64748B;
    --pro-border: #E2E8F0;
    --pro-card-bg: #FFFFFF;
}

body.pro-mode-active {
    overflow: hidden !important;
}

body.pro-mode-active .pet-rock-container,
body.pro-mode-active #theme-toggle {
    display: none !important;
}

body > *:not(#pro-mode-overlay):not(#pro-confirm-modal):not(script) {
    transition: filter 0.4s ease, transform 0.4s ease;
}

body.pro-mode-active > *:not(#pro-mode-overlay):not(#pro-confirm-modal):not(script) {
    filter: blur(8px) grayscale(50%);
    transform: scale(0.98);
    pointer-events: none;
}

/* Overlay Container */
#pro-mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--pro-bg);
    z-index: 99999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--pro-text-main);
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.985);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#pro-mode-overlay.visible {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

/* Common Components */
.pro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.pro-btn-primary {
    background: var(--pro-text-main);
    color: white;
}
.pro-btn-primary:hover {
    background: #000;
}

.pro-btn-outline {
    background: transparent;
    color: var(--pro-text-main);
    border: 1px solid var(--pro-border);
}
.pro-btn-outline:hover {
    background: #F1F5F9;
}

/* Navbar */
.pro-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.pro-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pro-logo-icon {
    color: var(--pro-blue);
    font-weight: bold;
    font-size: 1.5rem;
}

.pro-logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.pro-logo-sub {
    font-size: 0.75rem;
    color: var(--pro-text-muted);
    font-weight: 400;
}

.pro-nav-links {
    display: none;
    gap: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .pro-nav-links {
        display: flex;
    }
}

.pro-nav-links a {
    color: var(--pro-text-main);
    text-decoration: none;
}
.pro-nav-links a:hover {
    color: var(--pro-blue);
}

/* Hero Section */
.pro-hero {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 4rem 0 6rem;
}

@media (min-width: 992px) {
    .pro-hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.pro-hero-content {
    flex: 1;
    max-width: 600px;
}

.pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #EFF6FF;
    color: var(--pro-blue);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pro-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--pro-blue);
    border-radius: 50%;
}

.pro-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.pro-title span {
    color: var(--pro-blue);
}

.pro-subtitle {
    font-size: 1.1rem;
    color: var(--pro-text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.pro-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Profile Card */
.pro-profile {
    background: var(--pro-card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.pro-profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DBEAFE, #93C5FD);
    margin: 0 auto 1.5rem;
    position: relative;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.pro-status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #22C55E;
    border: 3px solid white;
    border-radius: 50%;
}

.pro-profile-name {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pro-profile-role {
    text-align: center;
    color: var(--pro-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.pro-profile-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--pro-text-muted);
}

.pro-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Tech Row */
.pro-tech {
    text-align: center;
    margin-bottom: 4rem;
}
.pro-tech-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pro-text-muted);
    margin-bottom: 2rem;
    font-weight: 600;
}
.pro-tech-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    color: var(--pro-text-muted);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Stats Row */
.pro-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 6rem;
}
@media (min-width: 768px) {
    .pro-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}
.pro-stat-card {
    background: var(--pro-card-bg);
    border: 1px solid var(--pro-border);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pro-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.pro-stat-icon {
    width: 40px;
    height: 40px;
    background: #F1F5F9;
    color: var(--pro-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.pro-stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.pro-stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.pro-stat-sub {
    font-size: 0.8rem;
    color: var(--pro-text-muted);
}

/* Projects */
.pro-section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}
.pro-section-title h2 {
    font-size: 2rem;
    font-weight: 700;
}
.pro-section-link {
    color: var(--pro-blue);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
}
.pro-projects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 6rem;
}
@media (min-width: 768px) {
    .pro-projects {
        grid-template-columns: repeat(3, 1fr);
    }
}
.pro-project-card {
    background: var(--pro-card-bg);
    border: 1px solid var(--pro-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}
.pro-project-card:hover {
    transform: translateY(-5px);
}
.pro-project-img {
    height: 180px;
    background: linear-gradient(135deg, #1E293B, #0F172A);
    position: relative;
    padding: 1.5rem;
}
.pro-project-img::after {
    content: 'Dashboard UI';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.2);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}
.pro-project-content {
    padding: 1.5rem;
}
.pro-project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.pro-project-desc {
    color: var(--pro-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.pro-project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.pro-tag {
    background: #F1F5F9;
    color: var(--pro-text-muted);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
}

/* Footer CTA */
.pro-footer-cta {
    background: var(--pro-card-bg);
    border: 1px solid var(--pro-border);
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}
@media (min-width: 768px) {
    .pro-footer-cta {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}
.pro-footer-icon {
    width: 60px;
    height: 60px;
    background: #EFF6FF;
    color: var(--pro-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pro-footer-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.pro-footer-text p {
    color: var(--pro-text-muted);
}

/* Rejection Overlay */
#pro-rejection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#pro-rejection.visible {
    opacity: 1;
}

.pro-rejection-text {
    font-family: 'Caveat', cursive; /* Match the real site's handwritten style */
    font-size: 3rem;
    color: #111;
    text-align: center;
    line-height: 1.2;
    transform: rotate(-2deg);
}

/* Confirm Modal */
#pro-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

#pro-confirm-modal.visible {
    opacity: 1;
    pointer-events: all;
}

.pro-modal-content {
    background: var(--bg-color); /* Match real site bg */
    color: var(--text-color); /* Match real site text */
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px dashed #111;
    max-width: 400px;
    width: 90%;
    text-align: center;
    font-family: inherit; /* Use real site font */
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .pro-modal-content {
    border-color: var(--text-color);
    box-shadow: 8px 8px 0px rgba(255,255,255,0.05);
}

#pro-confirm-modal.visible .pro-modal-content {
    transform: translateY(0);
}

.pro-modal-title {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pro-modal-body {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.pro-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pro-modal-caption {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.6;
    font-family: 'Caveat', cursive;
}
