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

:root {
    --background: #ffffff;
    --text-primary: #0a0a0a;
    --text-secondary: #666666;
    --border: #e5e5e5;
    --accent: #0066ff;
    --accent-hover: #0052cc;
    --card-bg: #fafafa;
    --success: #00c853;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Header */
.header {
    margin-bottom: 80px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    gap: 32px;
    align-items: center;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
}

.header-info {
    flex: 1;
}

.name {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.title {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 400;
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link.upwork-link {
    background: #14a800;
    color: white;
    border-color: #14a800;
}

.social-link.upwork-link:hover {
    background: #108c00;
    border-color: #108c00;
    color: white;
}

.social-link.book-call {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.social-link.book-call:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
}

/* Projects */
.projects {
    margin-bottom: 80px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

.project-card {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-card:hover .view-details {
    color: var(--accent);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.project-name {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.project-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.project-status.live {
    background: #e8f5e9;
    color: var(--success);
}

.project-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.02);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    padding: 6px 12px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.project-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.view-details {
    display: inline-block;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.project-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
    position: relative;
}

.link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.link:hover {
    color: var(--accent-hover);
}

.link:hover::after {
    width: 100%;
}

.link-primary {
    color: var(--accent);
    font-weight: 600;
}

/* Project Detail Pages */
.breadcrumb {
    margin-bottom: 40px;
}

.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--accent);
}

.project-detail-header {
    margin-bottom: 40px;
    text-align: center;
}

.project-detail-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.project-detail-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.project-meta {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.project-year {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.project-detail-image {
    margin-bottom: 60px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.project-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-detail-content {
    margin-bottom: 60px;
}

.detail-section {
    margin-bottom: 60px;
}

.detail-section h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.detail-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-list li {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.tech-stack-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

.tech-stack-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.tech-stack-item p {
    margin: 0;
    font-size: 14px;
}

.tech-stack-item ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tech-stack-item ul li {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
}

.tech-stack-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.project-links-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.detail-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.detail-link:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.link-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.link-url {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: monospace;
}

.project-detail-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.btn-back {
    display: inline-block;
    padding: 12px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-back:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 15px;
}

.contact {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 40px 20px;
    }

    .header {
        margin-bottom: 60px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .name {
        font-size: 36px;
    }

    .title {
        font-size: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .project-card {
        padding: 24px;
    }

    .project-name {
        font-size: 20px;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tech-stack-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-detail-title {
        font-size: 36px;
    }

    .project-detail-image img {
        border-radius: 8px;
    }
}

/* Screenshot Gallery */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.screenshot-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.screenshot-item img {
    width: 100%;
    border-radius: 8px;
    display: block;
    margin-bottom: 12px;
}

.screenshot-caption {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .screenshot-gallery {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Screenshot Link */
.screenshot-link {
    display: block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.screenshot-link img {
    transition: all 0.3s ease;
}

.screenshot-link:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    user-select: none;
}

.lightbox-close:hover {
    color: var(--accent);
}

/* Live Site Button */
.btn-live-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.2);
}

.btn-live-site:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-live-site svg {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .btn-live-site {
        width: 100%;
        justify-content: center;
    }
}
