:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #3b82f6;
    --dark: #0f172a;
    --light: #ffffff;
    --gray: #64748b;
    --bg: #f8fafc;
    --dark-bg: #0f172a;
    --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;
}

body.dark-mode {
    --text-color: #e2e8f0;
    --light: #1e293b;
    --bg: #0f172a;
    --border-color: #334155;
    --gray: #94a3b8;
    background: var(--dark-bg);
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    animation: gradientShift 20s ease infinite;
    pointer-events: none;
    z-index: 0;
}

body.dark-mode::before {
    background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(5%, 5%) rotate(120deg); }
    66% { transform: translate(-5%, 5%) rotate(240deg); }
}

.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;
}

body.dark-mode .header {
    background: rgba(30, 41, 59, 0.8);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    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;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav {
    display: flex;
    gap: 5px;
}

.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);
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    cursor: pointer;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 32px;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
    content: "☀️";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.theme-toggle input:checked + .toggle-slider:before {
    content: "🌙";
    transform: translateX(28px);
}

/* 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;
}

.block.hero h2 {
    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 h2 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 */
.page-hero {
    text-align: center;
    padding: 80px 0 50px 0;
    position: relative;
}

.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;
}

/* 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::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.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;
}

body.dark-mode .card {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.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);
}

body.dark-mode .card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.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::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.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;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.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::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

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

body.dark-mode .contact-card:hover {
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
}

.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);
}

body.dark-mode .skill-card:hover {
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.3);
}

.skill-icon {
    font-size: 52px;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
    color: var(--text-color);
}

.skill-icon i {
    display: block;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.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-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.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);
}

body.dark-mode .work-slide-link:hover {
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.3);
}

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

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

.work-slide-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%);
    animation: rotate 20s linear infinite;
}

.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;
}

body.dark-mode .work-slide-tag {
    background: rgba(99, 102, 241, 0.2);
}

/* 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);
}

body.dark-mode .resume-section {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.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);
}

body.dark-mode .experience-item:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.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);
}

body.dark-mode .project-sidebar {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.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;
}

.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);
}

body.dark-mode .gallery-item:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.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%);
    animation: rotate 15s linear infinite;
}

.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);
}

/* 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-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 {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

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

    .nav {
        flex-wrap: wrap;
    }

    .nav a {
        padding: 8px 14px;
        font-size: 14px;
    }
    
    .block.hero h2 {
        font-size: 42px;
    }
    
    .block.hero p {
        font-size: 18px;
    }
    
    .page-hero h1 {
        font-size: 38px;
    }
    
    .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;
    }
}
