
/* =========================================
   JDP PORTFOLIO
   Main Stylesheet
========================================= */

/* Variables */
:root {
    --bg: #111111;
    --bg-secondary: #181818;
    --card: #1d1d1d;
    --text: #f5f5f5;
    --muted: #a1a1a1;
    --accent: #f97316;
    --border: #303030;
    --header-bg: rgba(17, 17, 17, 0.88);

    --font-main: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;

    --container: 1100px;
    --transition: 0.3s ease;
}

[data-theme="light"] {
    --bg: #f7f7f7;
    --bg-secondary: #eeeeee;
    --card: #ffffff;
    --text: #171717;
    --muted: #666666;
    --accent: #ea580c;
    --border: #dddddd;
    --header-bg: rgba(247, 247, 247, 0.9);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.7;
    transition: background var(--transition), color var(--transition);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
}

/* Shared */
.container {
    width: min(90%, var(--container));
    margin-inline: auto;
}

.section {
    padding: 110px 0;
}

.eyebrow {
    color: var(--accent);
    font-family: var(--font-code);
    font-size: 0.78rem;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.section-heading {
    margin-bottom: 48px;
}

.section-heading h2,
.resume-card h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
}

.section-heading h2 span,
.hero h1 span,
.contact-content h2 span {
    color: var(--accent);
}

.section-description {
    color: var(--muted);
    margin-top: 15px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-code);
    font-weight: 600;
    font-size: 1.25rem;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.88rem;
    transition: color var(--transition);
}

.nav-links a:hover,
.social-links a:hover {
    color: var(--accent);
}

.nav-links .nav-resume {
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 8px 14px;
    border-radius: 5px;
}

.theme-toggle {
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px;
    background: var(--text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform var(--transition), background var(--transition);
}

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

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

.btn-primary:hover {
    background: #ea580c;
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--accent);
}

/* Hero */
.hero {
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    align-items: center;
    gap: 70px;
    padding-top: 70px;
    padding-bottom: 70px;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -3px;
}

.hero h2 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 22px;
    font-weight: 500;
}

.hero h2 span {
    color: var(--accent);
}

.hero-description {
    max-width: 580px;
    color: var(--muted);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-status {
    margin-top: 30px;
    color: var(--muted);
    font-size: 0.85rem;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 8px;
}

.hero-image {
    max-width: 340px;
    justify-self: center;
}

.image-frame {
    padding: 12px;
    border: 1px solid var(--accent);
    border-radius: 12px;
    position: relative;
}

.image-frame::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    border-radius: 12px;
    top: 15px;
    left: 15px;
    z-index: -1;
}

.image-frame img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 7px;
    background: var(--bg-secondary);
}

.image-caption {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
}

.image-caption span {
    color: var(--muted);
    font-family: var(--font-code);
    font-size: 0.7rem;
}

.image-caption strong {
    font-size: 0.9rem;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 70px;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 20px;
}

.about-details {
    display: grid;
    gap: 14px;
}

.detail-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 7px;
}

.detail-label {
    display: block;
    color: var(--accent);
    font-family: var(--font-code);
    font-size: 0.7rem;
    margin-bottom: 7px;
}

.detail-card strong {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Experience */
.timeline {
    display: grid;
    gap: 40px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 35px;
}

.timeline-date {
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--accent);
    padding-top: 5px;
}

.timeline-content {
    padding-left: 28px;
    border-left: 1px solid var(--border);
}

.timeline-content h3 {
    font-size: 1.25rem;
}

.timeline-content h4 {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 5px 0 15px;
}

.timeline-content p,
.timeline-content li {
    color: var(--muted);
    font-size: 0.9rem;
}

.timeline-content ul {
    list-style: disc;
    padding-left: 20px;
    margin: 15px 0;
}

.timeline-content li {
    margin-bottom: 7px;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tags span {
    color: var(--accent);
    background: rgba(249, 115, 22, 0.09);
    border: 1px solid rgba(249, 115, 22, 0.2);
    padding: 5px 10px;
    font-family: var(--font-code);
    font-size: 0.68rem;
    border-radius: 4px;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 26px;
    border-radius: 8px;
    transition: transform var(--transition), border-color var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-number {
    font-family: var(--font-code);
    color: var(--accent);
}

.project-type {
    font-family: var(--font-code);
    color: var(--muted);
    font-size: 0.62rem;
}

.project-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin: 30px 0 15px;
}

.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.project-card p {
    color: var(--muted);
    font-size: 0.88rem;
    min-height: 95px;
}

.project-link {
    display: inline-block;
    margin-top: 25px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 28px;
    border-radius: 8px;
}

.skill-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.skill-card li {
    color: var(--muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.skill-card li:last-child {
    border-bottom: none;
}

/* Resume */
.resume-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 45px;
}

.resume-card p:not(.eyebrow) {
    max-width: 600px;
    color: var(--muted);
    margin-top: 15px;
}

/* Contact */
.contact-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.2;
    margin-bottom: 22px;
}

.contact-content > p:not(.eyebrow) {
    color: var(--muted);
    margin: 0 auto 30px;
    max-width: 550px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 35px;
}

.social-links a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 25px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer p,
.back-to-top {
    color: var(--muted);
    font-size: 0.78rem;
}

.back-to-top:hover {
    color: var(--accent);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr 0.7fr;
        gap: 35px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        gap: 18px;
    }
}

@media (max-width: 700px) {
    .section {
        padding: 75px 0;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .theme-toggle {
        margin-left: auto;
        margin-right: 15px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        padding: 15px 5%;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: 12px 0;
    }

    .nav-links .nav-resume {
        display: inline-block;
        margin-top: 8px;
        padding: 8px 14px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 80px;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        width: min(75%, 280px);
        margin-top: 20px;
    }

    .hero-status {
        margin-bottom: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .timeline-content {
        padding-left: 20px;
    }

    .projects-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .project-card p {
        min-height: auto;
    }

    .resume-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

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