/* ===== PORTFOLIO JULIAN H - CUSTOM STYLES ===== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --orange: #FF6B00;
    --orange-light: #FF8C3A;
    --orange-pale: #FFF0E6;
    --black: #111111;
    --dark: #1A1A1A;
    --zinc: #27272A;
    --gray-600: #4B5563;
    --gray-400: #9CA3AF;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #ffffff;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ===== UTILITIES ===== */
.orange-accent {
    background-color: var(--orange);
}

.text-orange-accent {
    color: var(--orange);
}

.custom-shape {
    border-bottom-left-radius: 200px;
}

.skill-bar-bg {
    background-color: var(--gray-100);
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ===== HEADER / NAVBAR ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Logo */
.logo {
    width: 40px;
    height: 40px;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Desktop Nav */
.nav-left {
    display: flex;
    gap: 2rem;
}

.nav-left a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--black);
    transition: color 0.2s;
}

.nav-left a:hover {
    color: var(--orange);
}

/* Right side */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-contact {
    padding: 0.45rem 1.25rem;
    border: 1.5px solid #D1D5DB;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--black);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-contact:hover {
    background: var(--gray-100);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--orange);
}

.mobile-menu .btn-contact-mobile {
    margin-top: 1rem;
    padding: 0.75rem 2.5rem;
    background: var(--orange);
    color: white;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    padding-top: 6rem;
    padding-bottom: 4rem;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 520px;
    background: var(--orange);
    border-bottom-left-radius: 200px;
    z-index: -1;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.hero-text {
    width: 100%;
    text-align: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.25rem;
}

.hero-text h1 span {
    font-weight: 300;
}

.hero-text p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 380px;
    margin: 0 auto 1.75rem;
}

.btn-hire {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 0.85rem 2.25rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.9375rem;
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.35);
    transition: all 0.25s;
    border: none;
    cursor: pointer;
}

.btn-hire:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 107, 0, 0.4);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.skill-tag {
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.tag-orange {
    background: var(--orange);
    color: white;
}

.tag-dark {
    background: var(--zinc);
    color: white;
}

.tag-light {
    background: var(--gray-100);
    color: var(--black);
}

/* Hero Image */
.hero-image-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
}

.hero-photo-frame {
    width: 260px;
    height: 340px;
    border-radius: 9999px 9999px 9999px 9999px;
    border-bottom-left-radius: 0;
    overflow: hidden;
    border: 6px solid white;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
    background: var(--gray-100);
}

.hero-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.hero-badge {
    position: absolute;
    bottom: 32px;
    left: calc(50% - 160px);
    background: var(--zinc);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 120px;
}

.hero-badge .badge-num {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.hero-badge .badge-label {
    font-size: 0.6875rem;
    color: var(--gray-400);
    margin-top: 4px;
}

/* ===== SKILLS SECTION ===== */
.section-skills {
    padding: 5rem 0;
    background: var(--gray-100);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
}

.section-divider {
    width: 56px;
    height: 4px;
    background: var(--orange);
    border-radius: 2px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto;
}

.skill-card {
    background: white;
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s;
}

.skill-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.skill-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.skill-icon svg {
    width: 24px;
    height: 24px;
}

.skill-icon.orange-bg {
    background: var(--orange-pale);
}

.skill-icon.orange-bg svg {
    color: var(--orange);
    fill: var(--orange);
}

.skill-icon.dark-bg {
    background: var(--zinc);
}

.skill-icon.dark-bg svg {
    color: white;
    fill: white;
}

.skill-icon.light-bg {
    background: var(--gray-100);
}

.skill-icon.light-bg svg {
    color: var(--black);
    fill: var(--black);
}

.skill-card h4 {
    font-size: 0.875rem;
    font-weight: 700;
}

/* ===== EXPERIENCE SECTION ===== */
.section-experience {
    padding: 5rem 0;
    background: white;
}

.experience-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.experience-header h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.experience-header p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    position: relative;
    padding-left: 1.75rem;
    border-left: 2px solid #E5E7EB;
}

.timeline-item.active {
    border-left-color: var(--orange);
}

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #9CA3AF;
    background: white;
    transition: all 0.25s;
}

.timeline-item.active .timeline-dot {
    background: var(--orange);
    border-color: var(--orange);
}

.timeline-item:hover .timeline-dot {
    border-color: var(--orange);
    background: var(--orange);
}

.timeline-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
    margin-bottom: 0.25rem;
}

.timeline-item:not(.active) .timeline-label {
    color: var(--gray-400);
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.timeline-company {
    color: var(--gray-400);
    font-size: 0.9375rem;
    font-weight: 500;
}

.timeline-sub {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.timeline-desc {
    margin-top: 0.75rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.7;
}

.timeline-desc a {
    color: var(--orange);
}

.timeline-desc a:hover {
    text-decoration: underline;
}

/* ===== PROJECTS SECTION ===== */
.section-projects {
    padding: 5rem 0;
    background: var(--gray-100);
}

.projects-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.projects-header h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -1px;
}

.projects-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.projects-header-right a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-400);
    transition: color 0.2s;
}

.projects-header-right a:hover {
    color: var(--black);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.project-card {
    display: block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.project-thumb {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s, transform 0.3s;
}

.project-card:hover .project-thumb {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s;
}

.project-card:hover .project-thumb img {
    filter: grayscale(0%);
}

.project-number {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: white;
    color: var(--black);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.4rem 0.875rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.project-card:hover .project-number {
    background: var(--orange);
    color: white;
}

.project-title {
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.2s;
}

.project-card:hover .project-title {
    color: var(--orange);
}

.project-subtitle {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-top: 0.2rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-logo {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-weight: 800;
    font-size: 1.125rem;
    margin: 0 auto 1rem;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.9rem;
    max-width: 260px;
    margin: 0 auto;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.footer-socials {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
}

.footer-socials a:hover {
    background: var(--orange);
    color: white;
}

.footer-socials svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: var(--gray-400);
    font-size: 0.8125rem;
}

/* ===== SKILL LOGO IMAGES ===== */
.skill-logo-wrap {
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.skill-text-logo {
    font-weight: 800;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ===== FOOTER CONTACT INFO ===== */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    align-items: center;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-contact-item:hover {
    color: var(--orange);
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Small mobile (up to 480px) */
@media (max-width: 480px) {
    .hero-photo-frame {
        width: 220px;
        height: 290px;
    }

    .hero-badge {
        left: calc(50% - 135px);
    }

    .hero-text h1 {
        font-size: 2.25rem;
        letter-spacing: -1px;
    }
}

/* Tablet (≥640px) */
@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    .header-inner {
        padding: 1rem 1.5rem;
    }

    .hero-photo-frame {
        width: 300px;
        height: 390px;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* Desktop (≥1024px) */
@media (min-width: 1024px) {
    .hamburger {
        display: none !important;
    }

    .nav-left {
        display: flex !important;
    }

    .hero-inner {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero-text {
        width: 50%;
        text-align: left;
    }

    .hero-text p {
        margin-left: 0;
    }

    .skill-tags {
        justify-content: flex-start;
    }

    .hero-image-wrap {
        width: 50%;
    }

    .hero-photo-frame {
        width: 380px;
        height: 480px;
    }

    .hero-badge {
        left: auto;
        left: -64px;
    }

    .experience-layout {
        flex-direction: row;
        gap: 5rem;
        align-items: flex-start;
    }

    .experience-header {
        width: 33%;
        position: sticky;
        top: 7rem;
    }

    .timeline {
        width: 67%;
    }

    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: flex-start;
    }

    .footer-brand p {
        margin: 0;
    }

    .footer-logo {
        margin: 0 0 1rem;
    }
}

/* Mobile only: show hamburger, hide desktop nav */
@media (max-width: 1023px) {
    .nav-left {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }
}