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

:root {
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --secondary: #94a3b8;
    --accent: #fbbf24;
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --radius: 0.75rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.profile-img:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.location {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.contact-links {
    display: flex;
    gap: 1rem;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(96, 165, 250, 0.2);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.25rem;
    transition: var(--transition);
}

.contact-links a:hover {
    background: rgba(96, 165, 250, 0.3);
    transform: translateY(-2px);
}

/* Main Content */
main {
    padding: 4rem 0;
}

section {
    margin-bottom: 4rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text);
}

.about {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about p {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Base Card Styles */
.card, .skill-card, .project-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.card:hover, .skill-card:hover, .project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Expandable Cards */
.expandable .card-header {
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    padding-top: 2rem;
}

.expand-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.expand-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.expandable.expanded .card-content {
    max-height: 1000px;
    margin-top: 1rem;
}

.expandable.expanded .expand-btn {
    transform: rotate(45deg);
}

.expandable.expanded .expand-btn:hover {
    transform: rotate(45deg) scale(1.1);
}

/* Experience Cards */
.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.company {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.duration {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

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

/* Skill Cards */
.skill-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

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

.tag {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Project Cards */
.project-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech .tag {
    background: var(--accent);
}

.project-tech .tag:hover {
    background: #d97706;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.project-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.project-link:hover::after {
    transform: translateX(4px);
}

/* Footer */
footer {
    background: #0f172a;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-light);
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
    }
    
    .hero-text {
        flex: 1;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.25rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    main {
        padding: 2rem 0;
    }
    
    section {
        margin-bottom: 2rem;
    }
}

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Card header / subject styles (trimmed from legacy jp.css) --- */

/* Animation container helper (kept minimal) */
.bounce-up .subject {
    opacity: 0;
    transition: all 700ms ease-out;
    transform: translate3d(0,200px,0);
    backface-visibility: hidden;
}

.bounce-up.in-view .subject {
    opacity: 1;
    transform: translate3d(0,0,0);
}

.subject {
    position: relative;
    width: 100%;
    margin: 0;
    background: var(--surface);
    padding: 15px;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.2);
    border: 1px solid rgba(234,234,234,0.05);
    color: var(--text);
}

.subject .header {
    margin: 8px 0;
}

.subject .header .date, .subject .header .category {
    margin: 0;
    width: 50%;
}

.subject .header .date i, .subject .header .category i {
    margin-right: 5px;
    color: #333;
    transition: all 400ms linear;
}

.subject .header .date {
    float: left;
    text-align: left;
}

.subject .header .category {
    float: right;
    text-align: right;
}

.subject .icon {
    position: absolute;
    top: -20px;
    left: 50%;
    left: calc(50% - 20px);
}

.subject .icon i {
    width: 40px;
    height: 40px;
    color: #fff;
    font-size: 150%;
    border-radius: 50%;
    text-align: center;
    padding: 7px;
}

.subject .category-color {
    height: 7px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.subject.design .category-color, .subject.design .icon i {
    background: #c0392b;
}

.subject.development .category-color, .subject.development .icon i {
    background: #16a085;
}

.subject.photography .category-color, .subject.photography .icon i {
    background: #2980b9;
}

.subject.development:hover .header i { color: #16a085; }
.subject.design:hover .header i { color: #c0392b; }
.subject.photography:hover .header i { color: #2980b9; }

.subject .title {
    margin: 12px 0;
    border-bottom: dashed 1px rgba(204,204,204,0.2);
    padding-bottom: 10px;
}

.subject .content { margin-bottom: 8px; }

.subject .enrole {
    position: relative;
    color: inherit;
    padding: 5px 12px;
    cursor: pointer;
    float: right;
    display: inline-block;
    border: solid 1px rgba(204,204,204,0.3);
    transition: all 400ms linear;
}

.subject .enrole:hover { background: rgba(85,85,85,0.9); color: #fff; }

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

@media screen and (max-width: 678px) {
    .bounce-up .subject, .subject { transform: none; opacity: 1; }
    .subject .header .date, .subject .header .category { width: 100%; margin-bottom: 10px; text-align: center; float: none; }
}
