:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #3b82f6;
    --dark: #0f172a;
    --light: #ffffff;
    --gray: #64748b;
    --bg: #f8fafc;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
    --gradient-1: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    color: var(--text-color);
    background: var(--bg);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: min(1200px, 90%);
    margin: auto;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    padding: 25px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0 5%;
}

.logo {
    grid-column: 1;
    justify-self: start;
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

.logo a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.logo span {
    color: var(--primary);
    display: inline-block;

}

.header-right {
    display: flex;
    align-items: center;
    grid-column: 2;
}

.nav {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.nav a {
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 15px;
    position: relative;
    border-radius: 8px;
}

.nav a:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.nav a.active {
    color: var(--light);
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Block system */
.block {
    padding: 100px 0;
    transition: background-color 0.3s ease;
    position: relative;
}

.block.light {
    background: var(--light);
}

.block.dark {
    background: var(--bg);
}

/* Hero Section */
.block.hero {
    text-align: center;
    padding: 150px 0 120px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-color: #edf5fb;
    background-position: center;
    background-size: cover;
}

.block.hero h1 {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 25px;
    color: var(--text-color);
    letter-spacing: -2px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out;
}

.block.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.block.hero p {
    font-size: 22px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.block h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-color);
    letter-spacing: -1px;
}

.block p {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Page Hero */
.block.page-hero {
    text-align: center;
    padding: 80px 0 50px 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-color: #edf5fb;
    background-position: center;
    background-size: cover;
}

.page-hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin: 0 0 15px 0;
    color: var(--text-color);
    letter-spacing: -2px;
    animation: fadeInUp 0.6s ease-out;
}

.page-hero p {
    font-size: 20px;
    color: var(--gray);
    margin: 0;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.breadcrumb-list {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.breadcrumb-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    color: var(--border-color);
    font-weight: 800;
}

.breadcrumb-list a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-list a:hover,
.breadcrumb-list a:focus-visible {
    text-decoration: underline;
}

.breadcrumb-list [aria-current="page"] {
    color: var(--text-color);
}

/* Buttons */
.btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    margin-top: 10px;
    display: inline-block;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

/* Cards */
.card {
    background: var(--light);
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    position: relative;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::after {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    height: 220px;
    background: var(--gradient-1);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.card:nth-child(2) .card-image { background: var(--gradient-2); }
.card:nth-child(3) .card-image { background: var(--gradient-3); }
.card:nth-child(4) .card-image { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.card:nth-child(5) .card-image { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.card:nth-child(6) .card-image { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }

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

.card:hover .card-image img,
.work-slide-link:hover .work-slide-image img {
    transform: scale(1.025);
}

.card-image:has(img)::before {
    display: none;
}

.card h3,
.card p {
    padding: 0 30px;
}

.card h3 {
    padding-top: 25px;
    margin: 0 0 12px 0;
    color: var(--text-color);
    font-size: 22px;
    font-weight: 700;
}

.card p {
    padding-bottom: 30px;
    margin: 0;
    color: var(--gray);
    font-size: 16px;
    line-height: 1.6;
}

/* Contact Cards */
.contact-card {
    background: var(--light);
    padding: 40px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.15);
}

.contact-card h3 {
    margin-top: 0;
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-card h3 i {
    color: var(--text-color);
    font-size: 28px;
}

.contact-card p {
    margin-bottom: 0;
    font-size: 16px;
}

/* Skills Showcase */
.skills-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--light);
    padding: 35px 30px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.skill-icon {
    font-size: 52px;
    margin-bottom: 15px;
    display: inline-block;

    color: var(--text-color);
}

.skill-icon i {
    display: block;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.skill-card h3 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.skill-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray);
}

/* Footer */
.footer {
    text-align: center;
    padding: 50px 0;
    background: var(--dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

/* Project Page Layout */
/* Project Page Layout */
.project-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 50px;
    align-items: start;
}

/* Work Slider */
.work-slider {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 60px;
}

.slider-container {
    overflow: hidden;
    border-radius: 16px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    gap: 30px;
}

.work-slide {
    min-width: calc(33.333% - 20px);
    flex-shrink: 0;
}

.work-slide-link {
    display: block;
    background: var(--light);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
}

.work-slide-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.work-slide-link:hover::after {
    transform: scaleX(1);
}

.work-slide-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.work-slide-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.work-slide-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.work-slide-content {
    padding: 25px;
}

.work-slide-content h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
}

.work-slide-content p {
    margin: 0 0 15px 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray);
}

.work-slide-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
    margin-top: 5px;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: var(--light);
    color: var(--primary);
    font-size: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
    line-height: 1;
    font-weight: bold;
}

.slider-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot:hover {
    background: var(--gray);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Resume Layout */
.resume-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: start;
}

.resume-sidebar {
    position: sticky;
    top: 100px;
}

.resume-section {
    background: var(--light);
    padding: 35px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.resume-section h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.resume-main .resume-section {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Education */
.education-item {
    margin-bottom: 20px;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 8px 0;
}

.education-item .degree {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 5px 0;
}

.education-item .school {
    font-size: 15px;
    color: var(--text-color);
    margin: 0 0 5px 0;
}

.education-item .dates {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

/* Skills Groups */
.skill-group {
    margin-bottom: 20px;
}

.skill-group:last-child {
    margin-bottom: 0;
}

.skill-group h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 8px 0;
}

.skill-group p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray);
    margin: 0;
}

.btn-small {
    padding: 12px 20px;
    font-size: 14px;
}

/* Experience Items */
.experience-item {
    background: var(--light);
    padding: 35px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.experience-item:hover::before {
    transform: scaleY(1);
}

.experience-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.experience-item h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 5px 0;
}

.experience-item .company {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.experience-meta {
    text-align: right;
}

.experience-meta .location {
    font-size: 15px;
    color: var(--text-color);
    margin: 0 0 3px 0;
    font-weight: 600;
}

.experience-meta .dates {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
    font-style: italic;
}

.experience-description {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.experience-description li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.experience-description li:last-child {
    margin-bottom: 0;
}

.experience-description li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 18px;
    font-weight: bold;
}

.project-sidebar {
    position: sticky;
    top: 100px;
    background: var(--light);
    padding: 40px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.sidebar-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-section p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tech-tag {
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-step {
    display: flex;
    gap: 15px;
    align-items: start;
}

.step-number {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.step-content h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

.step-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray);
}

.feature-list {
    margin: 12px 0 0 0;
    padding-left: 20px;
}

.feature-list li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 8px;
}

.feature-list li::marker {
    color: var(--primary);
}

/* Project Gallery */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4/3;
    background: var(--light);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0;
}

a.gallery-item {
    color: inherit;
    text-decoration: none;
    display: block;
}

a.gallery-item .gallery-placeholder span {
    transition: transform 0.2s ease;
}

a.gallery-item:hover .gallery-placeholder span,
a.gallery-item:focus-visible .gallery-placeholder span {
    transform: translateY(-2px);
}

.gallery-item:has(img)::after {
    content: 'View detail';
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    padding: 7px 10px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.2s ease;
}

.gallery-item:has(img):hover::after,
.gallery-item:has(img):focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top left;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-item.mobile-capture {
    background: #eef2f7;
}

.gallery-item.mobile-capture img {
    object-fit: contain;
    object-position: center top;
}

.gallery-item figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 7px 10px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.gallery-item:nth-child(2) .gallery-placeholder { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gallery-item:nth-child(3) .gallery-placeholder { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.gallery-item:nth-child(4) .gallery-placeholder { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.gallery-item:nth-child(5) .gallery-placeholder { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.gallery-item:nth-child(6) .gallery-placeholder { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }

.gallery-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);

}

.gallery-placeholder span {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    padding: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Video Sample Gallery */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-gallery-empty,
.video-card {
    background: var(--light);
    border: 2px solid var(--border-color);
    border-radius: 16px;
}

.video-gallery-empty {
    padding: 35px;
}

.video-gallery-empty h3 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 22px;
}

.video-gallery-empty p {
    margin: 0;
    font-size: 15px;
}

.video-gallery-empty code {
    color: var(--primary);
    font-weight: 700;
}

.video-card {
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    padding: 0;
    transition: all 0.3s ease;
    color: inherit;
}

.video-card:hover,
.video-card:focus-visible {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    outline: none;
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #111827 0%, #2563eb 100%);
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-thumb-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

.video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    color: #fff;
    background: rgba(15, 23, 42, 0.82);
    border: 2px solid rgba(255, 255, 255, 0.45);
    font-size: 26px;
    line-height: 1;
}

.video-card-body {
    padding: 22px;
}

.video-card-body h3 {
    margin: 0 0 8px 0;
    color: var(--text-color);
    font-size: 20px;
}

.video-card-body p {
    margin: 0 0 14px 0;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.video-tag {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

/* Project Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox-dialog {
    width: min(1400px, 100%);
    height: min(900px, 100%);
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 18px;
    position: relative;
}

.lightbox-image-wrap {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    background: #fff;
}

.lightbox-video {
    width: 100%;
    max-width: 1200px;
    max-height: 100%;
    border-radius: 8px;
    background: #000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    min-height: 24px;
}

.lightbox-btn {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
    background: var(--primary);
    border-color: var(--primary);
    outline: none;
}

.lightbox-close {
    top: 0;
    right: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    width: 52px;
    height: 70px;
    border-radius: 8px;
    transform: translateY(-50%);
    font-size: 36px;
    line-height: 1;
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

.lightbox-count {
    position: absolute;
    left: 0;
    top: 0;
    padding: 8px 12px;
    border-radius: 6px;
    color: #fff;
    background: rgba(15, 23, 42, 0.82);
    font-size: 13px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
    .project-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-sidebar {
        position: static;
    }
    
    .work-slide {
        min-width: calc(50% - 15px);
    }
    
    .resume-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .resume-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 90%;
        margin: auto;
        gap: 20px;
        padding: 0;
    }

    .header-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .nav {
        flex-wrap: wrap;
    }

    .nav a {
        padding: 8px 14px;
        font-size: 14px;
    }
    
    .block.hero h1 {
        font-size: 42px;
    }
    
    .block.hero p {
        font-size: 18px;
    }
    
    .page-hero h1 {
        font-size: 38px;
    }

    .breadcrumb-list {
        border-radius: 14px;
        padding: 10px 12px;
    }
    
    .block h2 {
        font-size: 36px;
    }
    
    .block {
        padding: 60px 0;
    }
    
    .work-slider {
        padding: 0 50px;
    }
    
    .work-slide {
        min-width: 100%;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lightbox {
        padding: 18px;
    }

    .lightbox-dialog {
        height: 100%;
        padding-top: 56px;
    }

    .lightbox-close {
        top: 0;
        right: 0;
    }

    .lightbox-count {
        top: 5px;
    }

    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 42px;
        width: 46px;
        height: 46px;
        font-size: 28px;
        transform: none;
    }

    .lightbox-caption {
        padding: 0 54px;
        font-size: 14px;
    }
}
/* Keyboard access and motion preferences */
.sr-only, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 4000;
    background: var(--light);
    color: var(--text-color);
    padding: 12px 20px;
    border: 2px solid var(--primary);
    border-radius: 8px;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}
.slider-btn:disabled {
    opacity: 0.5;
    cursor: default;
}
.slider-dot { padding: 0; }
.slider-rotation {
    display: block;
    margin: 20px auto 0;
    padding: 8px 16px;
    color: var(--text-color);
    background: var(--light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}
.lightbox [hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Crisp, single-theme visual system */
:root {
    color-scheme: light;
    --primary: #2856d8;
    --primary-dark: #1d43ad;
    --accent: #2856d8;
    --dark: #171e2c;
    --light: #fff;
    --gray: #596578;
    --bg: #f5f6f8;
    --text-color: #192231;
    --border-color: #dfe3ea;
    --gradient-1: linear-gradient(135deg, #2856d8, #4270eb);
}
html { scroll-padding-top: 110px; }
body { -webkit-font-smoothing: antialiased; transition: none; }
.header { padding: 20px 0; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; transition: none; }
.header-container { display: flex; justify-content: space-between; gap: 30px; max-width: 1440px; margin: auto; }
.logo { font-size: 24px; letter-spacing: -1px; white-space: nowrap; }
.logo span { animation: none; }
.nav { gap: 4px; }
.nav a { font-size: 13px; padding: 8px 13px; border-radius: 6px; transition: color .16s ease, background-color .16s ease; }
.nav a:hover { background: #f0f3f9; }
.nav a.active { background: #edf2ff; color: var(--primary); box-shadow: none; }
.block { padding: 88px 0; }
.block.light { background: #fff; }
.block.dark { background: var(--bg); border-top: 1px solid #e9ecf1; border-bottom: 1px solid #e9ecf1; }
.block.hero { padding: 120px 0 112px; text-align: left; background: #fff; border-bottom: 1px solid var(--border-color); }
.block.hero h1 { max-width: 1050px; font-size: clamp(44px, 5.6vw, 80px); line-height: 1.08; letter-spacing: -.055em; font-weight: 800; margin-bottom: 28px; animation: none; text-wrap: balance; }
.block.hero h1 span { background: none; -webkit-text-fill-color: currentColor; color: var(--primary); }
.block.hero p { max-width: 790px; font-size: 20px; line-height: 1.7; margin: 0 0 32px; animation: none; }
.block h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.18; letter-spacing: -.045em; font-weight: 700; }
.block p { line-height: 1.8; }
.block.page-hero { background: #fff; padding: 65px 0 60px; text-align: left; border-bottom: 1px solid var(--border-color); }
.page-hero h1 { font-size: clamp(38px, 4.8vw, 60px); letter-spacing: -.045em; line-height: 1.12; font-weight: 800; animation: none; }
.page-hero p { max-width: 850px; font-size: 18px; line-height: 1.7; }
.breadcrumbs { justify-content: flex-start; }
.breadcrumb-list { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.breadcrumb-list li { font-size: 12px; font-weight: 600; }
.btn { background: var(--primary); border-radius: 7px; padding: 13px 23px; font-size: 14px; line-height: 1.6; box-shadow: 0 2px 3px #17337114; animation: none; transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 5px 12px #1733711a; }
.btn:active { transform: translateY(0); }
.grid, .skills-showcase { gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card, .contact-card, .skill-card, .work-slide-link, .resume-section, .project-sidebar { border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 2px 6px #19223104; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.card:hover, .contact-card:hover, .skill-card:hover, .work-slide-link:hover { transform: translateY(-3px); border-color: #bac8e1; box-shadow: 0 8px 20px #1922310a; }
.card::after, .skill-card::before, .work-slide-link::after { content: none; }
.card h3, .work-slide-content h3 { font-size: 21px; line-height: 1.35; letter-spacing: -.025em; }
.card h3, .card p { padding-left: 25px; padding-right: 25px; }
.card p { font-size: 15px; }
.contact-card { padding: 30px; }
.contact-card h3, .skill-card h3 { font-size: 21px; line-height: 1.4; letter-spacing: -.02em; }
.contact-card h3 i { font-size: 22px; color: var(--primary); }
.skill-card { padding: 30px; }
.skill-icon { color: var(--primary); font-size: 38px; animation: none; }
.skill-card:hover .skill-icon { transform: none; }
.skill-bar { height: 6px; box-shadow: none; }
.skill-progress { background: var(--primary); box-shadow: none; }
.work-slide-tag { background: #eef2fa; border: 1px solid #e0e7f3; border-radius: 5px; padding: 3px 8px; font-size: 11px; }
.slider-btn { border-radius: 8px; box-shadow: none; }
.slider-rotation { border-width: 1px; font-size: 12px; }
.gallery-item { border-radius: 10px; }
.footer { padding: 34px 0; background: var(--dark); }
.footer::before { background: #2b3443; }
@media (max-width: 1024px) {
    .header-container { gap: 18px; flex-wrap: wrap; }
    .nav a { padding: 8px 10px; }
}
@media (max-width: 768px) {
    html { scroll-padding-top: 150px; }
    .header { padding: 16px 0; }
    .header-container { align-items: flex-start; flex-direction: column; gap: 12px; }
    .header-right { width: 100%; }
    .nav { width: 100%; justify-content: flex-start; gap: 3px; }
    .nav a { padding: 7px 9px; font-size: 12px; }
    .block { padding: 56px 0; }
    .block.hero { padding: 65px 0 68px; }
    .block.hero h1 { font-size: clamp(40px, 8vw, 58px); }
    .block.hero p { font-size: 17px; }
    .block.page-hero { padding: 42px 0; }
    .page-hero p { font-size: 16px; }
    .contact-card, .skill-card { padding: 25px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Portfolio evidence and production capabilities */
.evidence-gallery { grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; }
.evidence-gallery .evidence-figure { aspect-ratio: auto; border: 1px solid var(--border-color); border-radius: 10px; }
.evidence-gallery .evidence-figure img { height: auto; object-fit: contain; transform: none; }
.evidence-gallery .evidence-figure figcaption { position: static; border-radius: 0; background: #fff; color: var(--gray); padding: 14px 18px; font-size: 12px; font-weight: 400; border-top: 1px solid var(--border-color); }
.evidence-gallery .evidence-figure:hover { transform: none; box-shadow: 0 4px 14px #19223108; }
.evidence-note { font-size: 14px !important; margin: 0 !important; }
.case-content { min-width: 0; }
.case-section { padding-bottom: 38px; margin-bottom: 38px; border-bottom: 1px solid var(--border-color); }
.case-section:last-child { margin-bottom: 0; border: 0; }
.case-section h2, .capability-panel h2 { font-size: clamp(27px, 3vw, 36px); margin-bottom: 18px; }
.case-section p, .capability-panel p { font-size: 16px; }
.case-section .feature-list { margin: 22px 0 30px; }
.case-eyebrow { color: var(--primary) !important; font-size: 10px !important; font-weight: 700; letter-spacing: .12em; margin-bottom: 13px !important; }
.capability-panel { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 35px; align-self: start; }
.deliverable-list { list-style: none; margin: 30px 0; padding: 0; }
.deliverable-list li { display: flex; gap: 20px; padding: 23px 0; border-top: 1px solid var(--border-color); }
.deliverable-list li > span { color: var(--primary); font-size: 12px; font-weight: 700; padding-top: 4px; }
.deliverable-list h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -.02em; }
.deliverable-list p { font-size: 14px; line-height: 1.75; margin: 0; }
.text-link { color: var(--primary); font-size: 14px; font-weight: 600; text-underline-offset: 4px; }
.capability-panel .text-link { display: block; margin-top: 22px; }
.service-directory { border: 1px solid var(--border-color); background: #fff; border-radius: 12px; overflow: hidden; align-self: start; }
.service-row { display: flex; align-items: center; gap: 22px; text-decoration: none; color: var(--text-color); padding: 28px; border-bottom: 1px solid var(--border-color); transition: background-color .16s ease; }
.service-row:last-child { border-bottom: 0; }
.service-row:hover { background: #f1f5ff; }
.service-number { color: var(--primary); font-size: 12px; font-weight: 700; }
.service-row > div { flex: 1; }
.service-row h2 { font-size: 20px; margin: 0 0 7px; letter-spacing: -.02em; }
.service-row p { font-size: 14px; margin: 0; line-height: 1.6; }
.service-row > span:last-child { color: var(--primary); }
@media(max-width: 768px) { .capability-panel { padding: 25px; }.service-row { padding: 23px 20px; gap: 15px; } }

/* Original artwork and paired exhibition evidence */
.portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.portfolio-grid .evidence-figure { align-self: start; }
.portfolio-grid .evidence-figure img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; background: #fff; }
.portfolio-grid .evidence-figure figcaption { min-height: 58px; line-height: 1.6; }
.production-feature { margin-bottom: 28px; }
.concept-evidence { margin-top: 28px; }
.portfolio-related { border: 1px solid var(--border-color); border-radius: 10px; background: #fff; }
@media(max-width: 680px) { .portfolio-grid { grid-template-columns: minmax(0, 1fr); }.portfolio-grid .evidence-figure figcaption { min-height: 0; } }
