/* Work Page Specific Styles */

/* Work Hero Section */
.work-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding-top: 5rem;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.grid-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #2563eb, transparent);
    height: 1px;
    width: 100%;
    animation: gridMove 8s ease-in-out infinite;
}

.grid-line:nth-child(1) { top: 20%; animation-delay: 0s; }
.grid-line:nth-child(2) { top: 35%; animation-delay: 1s; }
.grid-line:nth-child(3) { top: 50%; animation-delay: 2s; }
.grid-line:nth-child(4) { top: 65%; animation-delay: 3s; }
.grid-line:nth-child(5) { top: 80%; animation-delay: 4s; }

.work-hero .container {
    position: relative;
    z-index: 2;
}

.work-hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-left {
    animation: slideInLeft 1s ease-out both;
}

.hero-right {
    position: relative;
    animation: slideInRight 1s ease-out both;
}

.image-gallery {
    position: relative;
    width: 100%;
    height: 500px;
}

.gallery-image {
    position: absolute;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-image:hover img {
    transform: scale(1.1);
}

.img-1 {
    width: 280px;
    height: 200px;
    top: 0;
    left: 0;
    z-index: 3;
    animation-delay: 0.2s;
}

.img-2 {
    width: 240px;
    height: 180px;
    top: 120px;
    right: 20px;
    z-index: 2;
    animation-delay: 0.4s;
}

.img-3 {
    width: 200px;
    height: 160px;
    bottom: 0;
    left: 100px;
    z-index: 1;
    animation-delay: 0.6s;
}

.img-4 {
    width: 160px;
    height: 140px;
    top: 60px;
    left: 200px;
    z-index: 4;
    animation-delay: 0.8s;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #0f172a;
}

.title-main {
    display: block;
    color: #0f172a;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.title-highlight::after {
    content: '|';
    animation: blink 1s infinite;
    color: #2563eb;
    -webkit-text-fill-color: #2563eb;
}

.title-sub {
    display: block;
    color: #64748b;
    font-size: 3rem;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 3rem;
    max-width: 500px;
    text-align: left;
}





.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #64748b;
    animation: fadeInUp 1s ease-out 1.5s both;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid #64748b;
    margin: 0 auto 0.5rem;
    position: relative;
    overflow: hidden;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #64748b;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Featured Projects Section */
.featured-projects {
    padding: 4rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.project-showcase {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 3rem 0;
    position: relative;
}

.project-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563eb, transparent);
}

.project-item:nth-child(even)::after {
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
}

.project-item.reverse {
    direction: rtl;
}

.project-item.reverse > * {
    direction: ltr;
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    transition: all 0.6s ease;
    border: 1px solid #e2e8f0;
}

.project-image-stack {
    position: relative;
    width: 100%;
    height: 400px;
}

.project-image-stack .main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 200px;
    z-index: 3;
    transition: all 0.6s ease;
    cursor: pointer;
}

.project-image-stack .overlay-image {
    position: absolute;
    top: 120px;
    right: 20px;
    width: 240px;
    height: 180px;
    z-index: 2;
    transition: all 0.6s ease;
    cursor: pointer;
}

.project-image-stack .project-image:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image-stack .project-image:hover img {
    transform: scale(1.1);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.6s ease;
}

.project-item:hover .project-image {
    transform: none;
    box-shadow: none;
}

.project-item:hover .project-image img {
    transform: none;
}

.project-content {
    padding: 0;
}

.project-category {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.project-tech span {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

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

.project-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

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

.project-link:hover {
    color: #1d4ed8;
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    background: #f8fafc;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes gridMove {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

/* Dark Theme Support */
[data-theme="dark"] .projects-filter {
    background: #0f172a;
}

[data-theme="dark"] .projects-main {
    background: #0f172a;
}

[data-theme="dark"] .cta {
    background: #1e293b;
}

[data-theme="dark"] .filter-header h2,
[data-theme="dark"] .cta-content h2 {
    color: #ffffff;
}

[data-theme="dark"] .filter-header p,
[data-theme="dark"] .cta-content p {
    color: #94a3b8;
}

[data-theme="dark"] .filter-btn {
    border-color: #475569;
    color: #94a3b8;
}

[data-theme="dark"] .project-card {
    background: #1e293b;
    border-color: #475569;
}

[data-theme="dark"] .project-content h3 {
    color: #ffffff;
}

[data-theme="dark"] .project-content p {
    color: #cbd5e1;
}

[data-theme="dark"] .project-tech span {
    background: #334155;
    color: #cbd5e1;
    border-color: #475569;
}

/* Skills & Experience Section */
.skills-experience {
    padding: 4rem 0;
    background: #f8fafc;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #8b5cf6);
    transition: width 2s ease-in-out;
}

.experience-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.experience-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.experience-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.experience-org {
    font-size: 0.9rem;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.experience-content p:last-child {
    color: #64748b;
    line-height: 1.6;
}

/* Programs Section */
.programs-section {
    padding: 4rem 0;
    background: white;
}

.programs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.program-card {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 2rem;
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.program-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.program-badge {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.program-duration {
    color: #8b5cf6;
    font-weight: 600;
    margin-bottom: 1rem;
}

.program-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.program-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.highlight {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.program-link .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #2563eb;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.program-link .btn-outline:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

[data-theme="dark"] .skills-experience {
    background: #1e293b;
}

[data-theme="dark"] .programs-section {
    background: #0f172a;
}

[data-theme="dark"] .skill-category h3,
[data-theme="dark"] .experience-content h4,
[data-theme="dark"] .program-content h3 {
    color: #ffffff;
}

[data-theme="dark"] .experience-item,
[data-theme="dark"] .program-card {
    background: #1e293b;
    border-color: #475569;
}

[data-theme="dark"] .skill-bar {
    background: #374151;
}

[data-theme="dark"] .highlight {
    background: #334155;
    color: #cbd5e1;
    border-color: #475569;
}

/* Programs Section */
.program-showcase {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-top: 3rem;
}

/* Skills Section */
.skills-section {
    padding: 4rem 0;
    background: white;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.skill-item {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
}

.skill-item:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.skill-name {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.skill-item:hover .skill-name {
    color: white;
}

[data-theme="dark"] .skills-section {
    background: #0f172a;
}

[data-theme="dark"] .skill-name {
    color: #cbd5e1;
}

[data-theme="dark"] .skill-bar {
    background: #374151;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .work-hero-layout {
        gap: 3rem;
    }
    
    .image-gallery {
        height: 450px;
    }
    
    .project-item {
        gap: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .work-hero {
        padding-top: 6rem;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2.2rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .title-sub {
        font-size: 1.5rem;
    }
    
    .work-hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
        max-width: 100%;
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .image-gallery {
        height: 300px;
        margin: 0 auto;
        max-width: 350px;
    }
    
    .img-1 {
        width: 160px;
        height: 120px;
        top: 10px;
        left: 10px;
    }
    
    .img-2 {
        width: 140px;
        height: 105px;
        top: 80px;
        right: 5px;
    }
    
    .img-3 {
        width: 120px;
        height: 90px;
        bottom: 10px;
        left: 40px;
    }
    
    .img-4 {
        width: 100px;
        height: 75px;
        top: 40px;
        left: 80px;
    }
    
    .project-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .project-item.reverse {
        direction: ltr;
    }
    
    .project-image {
        order: -1;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .project-image-stack {
        height: 250px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .project-image-stack .main-image {
        width: 200px;
        height: 140px;
        top: 0;
        left: 0;
    }
    
    .project-image-stack .overlay-image {
        width: 180px;
        height: 125px;
        top: 80px;
        right: 0;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-content h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .project-tech {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .project-links {
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .program-showcase {
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-item {
        padding: 1.5rem 1rem;
    }
    
    .service-item h3 {
        font-size: 1.1rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
        margin: 2rem 1rem 0;
    }
    
    .cta-section h3 {
        font-size: 1.5rem;
    }
    
    .section-header {
        padding: 0 1rem;
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .cv-viewer iframe {
        min-height: 600px;
    }
    
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .work-hero {
        padding-top: 5rem;
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .title-sub {
        font-size: 1.2rem;
    }
    
    .hero-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .image-gallery {
        height: 200px;
        max-width: 280px;
    }
    
    .img-1 {
        width: 120px;
        height: 90px;
        top: 5px;
        left: 5px;
    }
    
    .img-2 {
        width: 100px;
        height: 75px;
        top: 60px;
        right: 5px;
    }
    
    .img-3 {
        width: 90px;
        height: 68px;
        bottom: 5px;
        left: 30px;
    }
    
    .img-4 {
        width: 80px;
        height: 60px;
        top: 30px;
        left: 60px;
    }
    
    .project-item {
        padding: 1.5rem 0.5rem;
        gap: 1.5rem;
    }
    
    .project-content {
        padding: 0.5rem;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
    }
    
    .project-tech {
        gap: 0.3rem;
    }
    
    .project-tech span {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .project-image-stack {
        height: 180px;
        max-width: 250px;
    }
    
    .project-image-stack .main-image {
        width: 150px;
        height: 105px;
    }
    
    .project-image-stack .overlay-image {
        width: 130px;
        height: 90px;
        top: 60px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .skill-item {
        padding: 0.8rem 1rem;
    }
    
    .skill-name {
        font-size: 0.85rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-item {
        padding: 1.2rem 0.8rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .service-item h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .service-item p {
        font-size: 0.85rem;
    }
    
    .cta-section {
        padding: 1.5rem 0.8rem;
        margin: 1.5rem 0.5rem 0;
    }
    
    .cta-section h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .cta-section p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .section-header {
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .cv-viewer iframe {
        min-height: 500px;
    }
    
    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Services Available Section */
.services-available {
    padding: 4rem 0;
    background: #f8fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    background: white;
    padding: 2rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.service-item p {
    color: #64748b;
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: white;
    border: 1px solid #e2e8f0;
}

.cta-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2563eb;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    background: #1d4ed8;
}

/* Dark Theme Support */
[data-theme="dark"] .services-available {
    background: #1e293b;
}

[data-theme="dark"] .service-item {
    background: #334155;
    border-color: #475569;
}

[data-theme="dark"] .service-item h3 {
    color: #ffffff;
}

[data-theme="dark"] .service-item p {
    color: #cbd5e1;
}

[data-theme="dark"] .cta-section {
    background: #334155;
    border-color: #475569;
}

[data-theme="dark"] .cta-section h3 {
    color: #ffffff;
}

[data-theme="dark"] .cta-section p {
    color: #cbd5e1;
}

/* CV Section */
.cv-section {
    padding: 4rem 0;
    background: white;
}

.cv-viewer {
    margin-top: 3rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cv-viewer iframe {
    width: 100%;
    min-height: 800px;
}

[data-theme="dark"] .cv-section {
    background: #0f172a;
}

[data-theme="dark"] .cv-viewer {
    border-color: #475569;
}

/* Mobile Header Styles for Work Page */
@media (max-width: 768px) {
    body[data-page="work"] .nav-menu {
        position: fixed;
        left: 0;
        top: 4rem;
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
        padding: 2rem;
        gap: 1.5rem;
        backdrop-filter: none;
        border: 1px solid var(--border-color);
        align-items: center;
    }
    
    body[data-page="work"] .nav-menu.active {
        transform: translateX(0);
    }
    
    body[data-page="work"] .theme-selector {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    body[data-page="work"] .theme-btn {
        margin: 0 auto;
    }
    
    body[data-page="work"] .theme-menu {
        position: relative;
        right: auto;
        left: auto;
        top: 0.5rem;
        width: 150px;
        margin: 0.5rem auto 0;
    }
    
    body[data-page="work"] .nav-toggle {
        display: flex;
    }
}
[data-theme="dark"] .work-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] .title-main {
    color: #ffffff !important;
}

[data-theme="dark"] .title-sub {
    color: #94a3b8 !important;
}

[data-theme="dark"] .hero-description {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .hero-badge {
    background: rgba(37, 99, 235, 0.2) !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
}

[data-theme="dark"] .scroll-indicator,
[data-theme="dark"] .scroll-indicator span {
    color: #94a3b8 !important;
}

[data-theme="dark"] .scroll-mouse {
    border-color: #94a3b8 !important;
}

[data-theme="dark"] .scroll-wheel {
    background: #94a3b8 !important;
}

/* Dark theme for projects section */
[data-theme="dark"] .featured-projects {
    background: #0f172a !important;
}

[data-theme="dark"] .section-header h2 {
    color: #ffffff !important;
}

[data-theme="dark"] .section-header p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .project-category {
    background: rgba(37, 99, 235, 0.2) !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .project-content h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .project-content p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .project-tech span {
    background: #334155 !important;
    color: #cbd5e1 !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .project-image {
    border-color: #475569 !important;
}

[data-theme="dark"] .skill-item {
    background: #334155 !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .skill-name {
    color: #ffffff !important;
}

/* Design Gallery Section */
.design-gallery {
    padding: 4rem 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    row-gap: 2rem;
    max-width: 100%;
    overflow: hidden;
}

.design-item {
    text-align: center;
    transition: all 0.3s ease;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.design-item.hidden {
    display: none;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.design-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8fafc;
    max-width: 100%;
    box-sizing: border-box;
}

.design-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.design-info {
    padding: 1rem 0;
    text-align: left;
}

.design-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.design-description {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.design-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.design-type {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.design-tools {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}

.loading-container,
.error-container,
.no-designs {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.no-designs {
    color: #64748b;
    font-size: 1.1rem;
}

.no-designs i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #94a3b8;
}

.no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
    font-size: 1.1rem;
}

.no-projects i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #94a3b8;
}

.no-programs {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
    font-size: 1.1rem;
}

.no-programs i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #94a3b8;
}

.no-services {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
    font-size: 1.1rem;
}

.no-services i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #94a3b8;
}

.no-experience {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
    font-size: 1.1rem;
}

.no-experience i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #94a3b8;
}

.experience-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    text-align: center;
    padding: 2rem;
}

.experience-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #94a3b8;
}

.current-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.service-link {
    margin-top: 1rem;
}

.service-link .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.service-link .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    background: #1d4ed8;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gallery-controls {
    text-align: center;
    margin-top: 3rem;
}

.gallery-controls .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2563eb;
    color: white;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gallery-controls .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    background: #1d4ed8;
}

.gallery-controls .btn-primary.hidden {
    display: none;
}

/* Dark theme support */
[data-theme="dark"] .design-gallery {
    background: #0f172a;
}

[data-theme="dark"] .design-item img {
    border-color: #475569;
}

[data-theme="dark"] .design-item {
    border-bottom-color: #475569;
}

[data-theme="dark"] .design-item h3 {
    color: #ffffff;
}

[data-theme="dark"] .design-description {
    color: #cbd5e1;
}

[data-theme="dark"] .design-tools {
    color: #94a3b8;
}

[data-theme="dark"] .design-type {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border-color: rgba(37, 99, 235, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .design-item {
        margin: 0;
        padding-bottom: 1.5rem;
    }
    
    .design-item img {
        height: 250px;
    }
    
    .design-item h3 {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
    
    .design-item {
        margin: 0;
        padding-bottom: 1rem;
        width: 100%;
    }
    
    .design-item img {
        width: 100%;
        height: 200px;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .design-info {
        padding: 1rem 0.5rem;
    }
}
.view-designs-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.designs-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.designs-content {
    text-align: left;
}

.designs-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.designs-content p {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.designs-preview {
    position: relative;
}

.single-preview {
    position: relative;
}

.single-preview img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    transition: all 0.6s ease;
    cursor: pointer;
}

.single-preview:hover img {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Dark theme for view designs section */
[data-theme="dark"] .view-designs-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .designs-content h2 {
    color: #ffffff;
}

[data-theme="dark"] .designs-content p {
    color: #cbd5e1;
}

[data-theme="dark"] .single-preview img {
    border-color: #475569;
}

/* Mobile responsive for view designs section */
@media (max-width: 768px) {
    .designs-cta {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .designs-content {
        text-align: center;
    }
    
    .designs-content h2 {
        font-size: 2rem;
    }
    
    .designs-content p {
        font-size: 1rem;
    }
    
    .single-preview {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .designs-content h2 {
        font-size: 1.8rem;
    }
    
    .designs-content p {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .single-preview {
        max-width: 250px;
        gap: 0.5rem;
    }
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #ccc;
}

#modal-caption {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
    padding: 1rem;
}