/* Freelance site (JRP Tech) — light, friendly theme for general clients.
   Intentionally different from the dark portfolio used for job applications. */

:root {
    --bg: #fffaf5;
    --bg-alt: #fff1e6;
    --surface: #ffffff;
    --text: #2b2433;
    --text-muted: #6b6275;
    --primary: #f2665a;
    --primary-dark: #d9493d;
    --secondary: #7c5cff;
    --border: #f0e2d6;
    --shadow: 0 10px 30px rgba(43, 36, 51, 0.08);
    --shadow-hover: 0 18px 40px rgba(242, 102, 90, 0.18);
    --radius: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px;
}

body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    border: 2px solid var(--text);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--text);
    color: #fff;
}

.btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(255, 250, 245, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(43, 36, 51, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    padding: 10rem 5% 6rem;
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(242, 102, 90, 0.15), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(124, 92, 255, 0.12), transparent 40%);
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.accent {
    color: var(--primary);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

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

/* Sections */
.section {
    padding: 5rem 5%;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Services */
.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-card-featured {
    border: 2px solid var(--secondary);
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Works */
.filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter:hover {
    border-color: var(--primary);
}

.filter.active {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

.works-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 2rem;
}

.work-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.work-card.hidden {
    display: none;
}

.work-image {
    display: block;
    height: 210px;
    overflow: hidden;
    background: var(--bg-alt);
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.work-category {
    align-self: flex-start;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: rgba(242, 102, 90, 0.12);
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.work-category-ai {
    background: rgba(124, 92, 255, 0.12);
    color: var(--secondary);
}

.work-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.work-content p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.work-content .work-fit {
    font-size: 0.9rem;
    color: var(--text);
}

.work-link {
    margin-top: auto;
    align-self: flex-start;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.work-link:hover {
    text-decoration: underline;
}

/* Process */
.process-steps {
    max-width: 1100px;
    margin: 3rem auto 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 1.5rem;
}

.process-steps li {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.process-steps h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.process-steps p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact */
.contact-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 3.5rem 2rem;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff9a6b 100%);
    color: #fff;
}

.contact-box h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-box p {
    margin-bottom: 2rem;
    opacity: 0.95;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
}

.contact-btn img {
    object-fit: contain;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 5%;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer a {
    color: var(--text-muted);
}

.footer a:hover {
    color: var(--primary);
}

/* Fade-in */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 8rem 5% 4rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title,
    .contact-box h2 {
        font-size: 1.7rem;
    }
}
