/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-image {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    animation: pulse 2s ease-in-out infinite;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #0078d4;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 60px;
    border-radius: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text h1 {
    color: #0078d4;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    font-family: 'Segoe UI', 'Segoe UI Variable', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.02em;
}

.subtitle {
    color: #0078d4;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    margin-top: 0.2rem;
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navigation a {
    color: #0078d4;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.navigation a:hover {
    color: #106ebe;
}

/* Navigation Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #0078d4;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Content Spacing */
main {
    padding-top: 6rem;
}

/* Hero Carousel Styles */
.hero-carousel {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.8), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.carousel-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
    font-size: 1.3rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 120, 212, 0.8);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

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

/* Portfolio Styles */
.portfolio-section {
    background: #f8f9fa;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 120, 212, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

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

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.portfolio-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: #0078d4;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Projektit Hero Styles */
.projektit-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0 4rem 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    overflow: hidden;
}

.timeline-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 120, 212, 0.8);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-nav:hover {
    background: rgba(0, 120, 212, 1);
    transform: translateY(-50%) scale(1.1);
}

.timeline-nav.prev {
    left: 2rem;
}

.timeline-nav.next {
    right: 2rem;
}

/* Dot indicators */
.timeline-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 20;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 120, 212, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-dot.active {
    background: #0078d4;
    transform: scale(1.2);
}

.timeline-dot:hover {
    background: #106ebe;
    transform: scale(1.1);
}


.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 500px;
    min-width: 400px;
    opacity: 0.7;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

/* Timeline marker (circle with icon) */
.timeline-marker {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 4px solid #0078d4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 120, 212, 0.3);
    transition: all 0.3s ease;
}

.timeline-item.completed .timeline-icon {
    border-color: #28a745;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.timeline-item.in-progress .timeline-icon {
    border-color: #ffc107;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
    animation: pulse-timeline 2s ease-in-out infinite;
}

@keyframes pulse-timeline {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 25px rgba(255, 193, 7, 0.5);
    }
}

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

/* Timeline content */
.timeline-content {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Border colors based on status */
.timeline-item.completed .timeline-content {
    border-left: 4px solid #28a745;
}

.timeline-item.in-progress .timeline-content {
    border-left: 4px solid #ffc107;
}

.timeline-item.planning .timeline-content {
    border-left: 4px solid #6c757d;
}


/* Project header */
.project-header {
    margin-bottom: 1.5rem;
}

.project-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.8rem;
}

.project-status {
    display: inline-block;
    background: #0078d4;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 1rem;
    text-transform: uppercase;
}

.timeline-item.completed .project-status {
    background: #28a745;
}

.timeline-item.in-progress .project-status {
    background: #ffc107;
    color: #333;
}

.timeline-item.planning .project-status {
    background: #6c757d;
}

.project-date {
    display: inline-block;
    color: #0078d4;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Project description */
.project-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Project details */
.project-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.project-client,
.project-duration {
    color: #555;
    font-size: 0.95rem;
}

.project-client strong,
.project-duration strong {
    color: #333;
    display: block;
    margin-bottom: 0.3rem;
}

/* Technologies */
.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.project-technologies .tech-tag {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.project-technologies .tech-tag:hover {
    transform: translateY(-2px);
}

/* Results */
.project-results {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 3px solid #0078d4;
}

.project-results h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.8rem;
}

.project-results ul {
    margin: 0;
    padding-left: 1.5rem;
}

.project-results li {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.project-results li::marker {
    color: #0078d4;
}

/* Responsive timeline */
@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .timeline::before {
        top: 0;
        left: 50%;
        right: auto;
        bottom: 0;
        width: 4px;
        height: auto;
        transform: translateX(-50%);
    }

    .timeline-item {
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
        max-width: 500px;
    }

    .timeline-marker {
        margin-right: 2rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .timeline-content {
        text-align: left;
        max-width: none;
    }

    .project-details {
        grid-template-columns: 1fr;
    }

    .project-header h3 {
        font-size: 1.3rem;
    }
}

/* Modern Projects Showcase */
.projects-showcase {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.projects-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 120, 212, 0.3) 50%, transparent 100%);
}

.showcase-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.showcase-header h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #0078d4;
    border: 2px solid #0078d4;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0078d4;
    transition: left 0.3s ease;
    z-index: -1;
}

.view-all-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 120, 212, 0.3);
}

.view-all-btn:hover::before {
    left: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(0, 120, 212, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 120, 212, 0.2);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.project-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.project-status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-valmis, .status-ready {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.status-kehityksessa, .status-in-progress {
    background: rgba(251, 191, 36, 0.9);
    color: #1f2937;
}

.status-suunnittelu, .status-planning {
    background: rgba(107, 114, 128, 0.9);
    color: white;
}

.project-content {
    padding: 2rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.project-date {
    font-weight: 600;
    color: #0078d4;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: #0078d4;
}

.project-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.tech-badge {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(0, 120, 212, 0.1);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: white;
    transform: translateY(-2px);
}

.tech-badge.more {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: white;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0078d4;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.project-link .arrow {
    transition: transform 0.3s ease;
}

.project-card:hover .project-link .arrow {
    transform: translateX(5px);
}

.project-link:hover {
    color: #106ebe;
}

.loading-spinner {
    text-align: center;
    padding: 4rem 0;
}

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

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

/* Modern DevPosts Showcase */
.devposts-showcase {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.devposts-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 120, 212, 0.3) 50%, transparent 100%);
}

.devposts-showcase .showcase-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.devposts-showcase .showcase-header h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.devposts-showcase .view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #0078d4;
    border: 2px solid #0078d4;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.devposts-showcase .view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0078d4;
    transition: left 0.3s ease;
    z-index: -1;
}

.devposts-showcase .view-all-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 120, 212, 0.3);
}

.devposts-showcase .view-all-btn:hover::before {
    left: 0;
}

.devposts-showcase .articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.devposts-showcase .article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(0, 120, 212, 0.1);
}

.devposts-showcase .article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 120, 212, 0.2);
}

.devposts-showcase .article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.devposts-showcase .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.devposts-showcase .article-card:hover .article-image img {
    transform: scale(1.05);
}

.devposts-showcase .article-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
}

.devposts-showcase .placeholder-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.devposts-showcase .article-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.devposts-showcase .article-date-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.95);
    color: #0078d4;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.devposts-showcase .article-content {
    padding: 2rem;
}

.devposts-showcase .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.devposts-showcase .article-author {
    font-weight: 600;
    color: #0078d4;
}

.devposts-showcase .article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.devposts-showcase .article-card:hover .article-title {
    color: #0078d4;
}

.devposts-showcase .article-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.devposts-showcase .article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.devposts-showcase .tag-badge {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(0, 120, 212, 0.1);
    transition: all 0.3s ease;
}

.devposts-showcase .tag-badge:hover {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: white;
    transform: translateY(-2px);
}

.devposts-showcase .tag-badge.more {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: white;
}

.devposts-showcase .article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0078d4;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.devposts-showcase .article-link .arrow {
    transition: transform 0.3s ease;
}

.devposts-showcase .article-card:hover .article-link .arrow {
    transform: translateX(5px);
}

.devposts-showcase .article-link:hover {
    color: #106ebe;
}

/* Responsive Design for Projects Showcase */
@media (max-width: 768px) {
    .projects-showcase {
        padding: 3rem 0;
    }
    
    .showcase-header h2 {
        font-size: 2.5rem;
    }
    
    .showcase-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .project-card {
        border-radius: 16px;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.3rem;
    }
    
    .project-tech {
        gap: 0.4rem;
    }
    
    .tech-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Responsive Design for DevPosts Showcase */
@media (max-width: 768px) {
    .devposts-showcase {
        padding: 3rem 0;
    }

    .devposts-showcase .showcase-header h2 {
        font-size: 2.5rem;
    }

    .devposts-showcase .showcase-header p {
        font-size: 1.1rem;
    }

    .devposts-showcase .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .devposts-showcase .article-card {
        border-radius: 15px;
    }

    .devposts-showcase .article-content {
        padding: 1.5rem;
    }

    .devposts-showcase .article-title {
        font-size: 1.3rem;
    }

    .devposts-showcase .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* About Styles */
.about-section {
    background: #f8f9fa;
}

.about-content {
    display: block;
}

.about-description p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.skills-and-certs {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin: 3rem 0;
}

.skills-section {
    margin: 0;
}

.skills-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

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

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 500;
    color: #333;
}

.skill-level {
    color: #0078d4;
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #0078d4, #106ebe);
    transition: width 1s ease;
}

.certifications-section {
    margin: 0;
}

.certifications-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.certification-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cert-icon {
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-badge {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.cert-badge:hover {
    transform: scale(1.05);
}

.cert-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #333;
}

.cert-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.cert-date {
    color: #0078d4;
    font-size: 0.8rem;
    font-weight: 500;
}

.cert-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #0078d4;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cert-link:hover {
    color: #106ebe;
    text-decoration: underline;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
}

.stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    color: white;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #0078d4;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Contact Styles */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-methods {
    background: white;
}

.contact-methods a {
    text-decoration: none;
    color: inherit;
}

.contact-methods a:hover {
    text-decoration: none;
    color: inherit;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.contact-info p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: grid;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 40px;
    text-align: center;
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #333;
}

.contact-details p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* Form Styles */
.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0078d4;
}

.validation-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #0078d4;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #106ebe;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: #0078d4;
    border: 2px solid #0078d4;
}

.btn-secondary:hover {
    background: #0078d4;
    color: white;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

.success-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.success-text h4 {
    margin-bottom: 0.3rem;
}

.success-text p {
    margin: 0;
    opacity: 0.8;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

.error-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.error-text h4 {
    margin-bottom: 0.3rem;
}

.error-text p {
    margin: 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 30px;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 30px;
    }

    .hamburger {
        display: flex;
    }

    .navigation {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }

    .navigation.active {
        right: 0;
    }

    .navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 2rem;
    }

    .navigation li {
        border-bottom: 1px solid #e9ecef;
    }

    .navigation a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .carousel-content h2 {
        font-size: 2.5rem;
    }

    .carousel-content p {
        font-size: 1.1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Tabletilla: Piilota Pikalinkit, näytä AzureGuru + Palvelut */
    .footer-section:nth-child(2) {
        display: none;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .skills-and-certs {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projektit-details {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }
}


/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: white;
    padding: 4rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 0.8fr 0.8fr 1.4fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-image {
    height: 50px;
    width: auto;
    max-width: 50px;
    border-radius: 8px;
}

.footer-logo-text h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.footer-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0.3rem 0 0 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.footer-services {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1.5rem;
}

.footer-services li {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.95rem;
}

.footer-services li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: white;
    font-weight: bold;
}

.footer-certs-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-certifications {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-cert-badge {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.footer-cert-badge:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p,
.footer-tech p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

.footer-tech p {
    font-weight: 500;
}

/* Coming Soon Section */
.coming-soon-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
}

.coming-soon-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #0078d4;
    margin-bottom: 1.5rem;
}

.coming-soon-text {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 3rem;
    font-weight: 300;
}

.back-link {
    margin-top: 2rem;
}

/* Privacy Policy Section */
.privacy-section {
    padding: 8rem 0 4rem;
    min-height: 100vh;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0078d4;
    margin-bottom: 1rem;
    text-align: center;
}

.privacy-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.privacy-item {
    background: #f8f9fa;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border-left: 4px solid #0078d4;
}

.privacy-item h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.privacy-item p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.privacy-item ul {
    color: #666;
    line-height: 1.8;
    margin-left: 1.5rem;
}

.privacy-item li {
    margin-bottom: 0.5rem;
}

.privacy-item a {
    color: #0078d4;
    text-decoration: none;
    font-weight: 500;
}

.privacy-item a:hover {
    text-decoration: underline;
}

.privacy-back {
    text-align: center;
    margin-top: 3rem;
}
@media (max-width: 480px) {
    .container {
        padding: 0 25px;
    }

    .header-content {
        padding: 0 25px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .carousel-content h2 {
        font-size: 2rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .logo-text h1 {
        font-size: 1.5rem;
        color: #0078d4;
        font-family: 'Segoe UI', 'Segoe UI Variable', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
        letter-spacing: -0.02em;
    }
    
    .logo-image {
        height: 60px;
        max-width: 60px;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }

    .navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-form {
        padding: 1rem;
    }

    .skills-and-certs {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Mobiilissa: Vain AzureGuru */
    .footer-section:nth-child(2) {
        display: none;
    }

    .footer-section:nth-child(3) {
        display: none;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-logo-text h3 {
        font-size: 1.3rem;
    }

    .footer-subtitle {
        font-size: 0.85rem;
    }

    .footer-description,
    .footer-link,
    .footer-services li,
    .footer-certs-text {
        font-size: 0.9rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-copyright p,
    .footer-tech p {
        font-size: 0.85rem;
    }

    .footer-services {
        grid-template-columns: 1fr;
    }

    .coming-soon-content h1 {
        font-size: 2rem;
    }

    .coming-soon-text {
        font-size: 1.2rem;
    }

    .privacy-content h1 {
        font-size: 2rem;
    }

    .privacy-item {
        padding: 1.5rem;
    }

    .privacy-item h2 {
        font-size: 1.3rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card {
        margin-bottom: 2rem;
    }

    .article-metadata-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* DevPosts Section Styles */
.devposts-section {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.devposts-header {
    text-align: center;
    margin-bottom: 3rem;
}

.devposts-header h1 {
    font-size: 3rem;
    color: #0078d4;
    margin-bottom: 1rem;
    font-family: 'Segoe UI', 'Segoe UI Variable', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.devposts-header p {
    font-size: 1.2rem;
    color: #666;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Article Card */
/* Article Card Link Wrapper */
.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card-link:hover .article-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 120, 212, 0.2);
    cursor: pointer;
}

/* Article Banner */
.article-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
}

.article-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-banner img {
    transform: scale(1.05);
}

/* Article Content */
.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-header h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #333;
    transition: color 0.3s ease;
}

.article-card-link:hover .article-header h2 {
    color: #0078d4;
}

/* Article Metadata */
.article-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.article-metadata span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Reading Time */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.article-metadata-detail .reading-time {
    font-size: 1rem;
}

.project-metadata .reading-time {
    font-size: 0.9rem;
}

.project-metadata-detail .reading-time {
    font-size: 1rem;
}

.article-date::before {
    content: "📅";
}

.article-author::before {
    content: "✍️";
}

/* Article Excerpt */
.article-excerpt {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #f0f0f0;
    color: #555;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.tag:hover {
    background: #e0e0e0;
}

/* Article Footer */
.article-footer {
    margin-top: auto;
}

.read-more {
    color: #0078d4;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.3s ease;
}

.article-card-link:hover .read-more {
    gap: 0.6rem;
}

/* Loading and Empty States */
.loading-spinner,
.no-articles {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.loading-spinner p,
.no-articles p {
    font-size: 1.2rem;
}

/* DevPost Detail Section */
.devpost-section {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-back {
    margin-bottom: 2rem;
}

.article-back a {
    color: #0078d4;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.article-back a:hover {
    gap: 0.8rem;
}

.article-banner-large {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
}

.article-banner-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-header-detail {
    margin-bottom: 2rem;
}

.article-header-detail h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: 'Segoe UI', 'Segoe UI Variable', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.article-metadata-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1rem;
    color: #666;
}

.article-metadata-detail span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.article-tags-inline {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-left: 1rem;
}

.article-tags-inline .tag {
    background: #0078d4;
    color: #fff;
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.article-tags-detail .tag {
    background: #0078d4;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Article Content Detail */
.article-content-detail {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 3rem;
}

.article-content-detail h1,
.article-content-detail h2,
.article-content-detail h3,
.article-content-detail h4,
.article-content-detail h5,
.article-content-detail h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0078d4;
    font-family: 'Segoe UI', 'Segoe UI Variable', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.article-content-detail h1 {
    font-size: 2rem;
}

.article-content-detail h2 {
    font-size: 1.7rem;
}

.article-content-detail h3 {
    font-size: 1.4rem;
}

.article-content-detail p {
    margin-bottom: 1.2rem;
}

.article-content-detail ul,
.article-content-detail ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.article-content-detail li {
    margin-bottom: 0.5rem;
}

.article-content-detail a {
    color: #0078d4;
    text-decoration: underline;
}

.article-content-detail a:hover {
    color: #005a9e;
}

.article-content-detail code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95em;
    color: #d63384;
}

.article-content-detail pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.article-content-detail pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.article-content-detail blockquote {
    border-left: 4px solid #0078d4;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
}

.article-content-detail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-content-detail table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.article-content-detail table th,
.article-content-detail table td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
}

.article-content-detail table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #0078d4;
}

.article-content-detail table tr:hover {
    background: #f9f9f9;
}

.article-footer-detail {
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.article-not-found {
    text-align: center;
    padding: 3rem;
}

.article-not-found h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.article-not-found p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #0078d4;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    background: #005a9e;
}

.btn-primary {
    background: #0078d4;
}

.btn-primary:hover {
    background: #005a9e;
}

/* Language Selector Styles */
.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-selector-desktop {
    display: flex;
    align-items: center;
}

.language-button {
    background: none;
    border: none;
    color: #0078d4;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.language-button:hover {
    color: #106ebe;
    background: rgba(0, 120, 212, 0.1);
}

.language-button.active {
    color: #fff;
    background: #0078d4;
}

.language-divider {
    color: #ccc;
    font-weight: 300;
}

.language-selector-mobile {
    display: none;
}

/* Mobile styles for language selector */
@media (max-width: 768px) {
    .language-selector-desktop {
        display: none;
    }
    
    .language-selector-mobile {
        display: flex;
        justify-content: center;
        padding: 1rem 0;
        border-top: 1px solid #e9ecef;
        margin-top: 1rem;
    }
    
    .header-right {
        gap: 1rem;
    }
    
    .language-selector {
        justify-content: center;
    }
    
    .language-button {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

/* Projects Section Styles */
.projects-section {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.projects-header {
    text-align: center;
    margin-bottom: 3rem;
}

.projects-header h1 {
    font-size: 3rem;
    color: #0078d4;
    margin-bottom: 1rem;
    font-family: 'Segoe UI', 'Segoe UI Variable', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.projects-header p {
    font-size: 1.2rem;
    color: #666;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card-link:hover .project-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 120, 212, 0.2);
    cursor: pointer;
}

/* Project Thumbnail */
.project-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}

/* Project Content */
.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.project-header h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    color: #333;
    transition: color 0.3s ease;
    flex: 1;
}

.project-card-link:hover .project-header h2 {
    color: #0078d4;
}

/* Project Status Badge */
.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-completed {
    background: #cce5ff;
    color: #004085;
}

.status-in-progress {
    background: #fff3cd;
    color: #856404;
}

/* Project Metadata */
.project-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.project-metadata span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-date::before {
    content: "📅";
    font-size: 0.9rem;
}

/* Project Excerpt */
.project-excerpt {
    color: #666;
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.6;
}

/* Project Technologies */
.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-badge {
    padding: 0.3rem 0.8rem;
    background: #f0f0f0;
    color: #0078d4;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-card:hover .tech-badge {
    background: #0078d4;
    color: #fff;
}

/* Project Footer */
.project-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.read-more {
    color: #0078d4;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.project-card-link:hover .read-more {
    gap: 0.8rem;
}

/* Loading and Empty States */
.loading-spinner,
.no-projects {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.loading-spinner p,
.no-projects p {
    font-size: 1.2rem;
}

/* Project Detail Section */
.project-detail-section {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.project-detail {
    max-width: 900px;
    margin: 0 auto;
}

.project-back {
    margin-bottom: 2rem;
}

.project-back a {
    color: #0078d4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-back a:hover {
    color: #005a9e;
}

.project-thumbnail-large {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
}

.project-thumbnail-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-header-detail {
    margin-bottom: 2rem;
}

.project-title-status {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-title-status h1 {
    font-size: 2.5rem;
    color: #333;
    line-height: 1.2;
    flex: 1;
}

.project-metadata-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.project-metadata-detail span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
}

.project-technologies-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.technologies-label {
    font-weight: 600;
    color: #333;
}

.project-content-detail {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.project-content-detail h1,
.project-content-detail h2,
.project-content-detail h3,
.project-content-detail h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0078d4;
    line-height: 1.3;
}

.project-content-detail h1 {
    font-size: 2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.project-content-detail h2 {
    font-size: 1.75rem;
}

.project-content-detail h3 {
    font-size: 1.5rem;
}

.project-content-detail p {
    margin-bottom: 1rem;
}

.project-content-detail ul,
.project-content-detail ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.project-content-detail li {
    margin-bottom: 0.5rem;
}

.project-content-detail code {
    background: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #0078d4;
}

.project-content-detail pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.project-content-detail pre code {
    background: none;
    padding: 0;
}

.project-content-detail blockquote {
    border-left: 4px solid #0078d4;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #666;
    font-style: italic;
}

.project-content-detail a {
    color: #0078d4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-content-detail a:hover {
    color: #005a9e;
    text-decoration: underline;
}

.project-content-detail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.project-content-detail table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.project-content-detail table th,
.project-content-detail table td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
}

.project-content-detail table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #0078d4;
}

.project-content-detail table tr:hover {
    background: #f9f9f9;
}

.project-footer-detail {
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.project-not-found {
    text-align: center;
    padding: 3rem;
}

.project-not-found h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.project-not-found p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Responsive Design for Projects */
@media (max-width: 768px) {
    .projects-header h1 {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        margin-bottom: 1.5rem;
    }

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

    .project-title-status h1 {
        font-size: 1.8rem;
    }

    .project-metadata-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .project-content-detail {
        font-size: 1rem;
    }
}

/* Placeholder Cards Styles */
.placeholder-card {
    opacity: 0.6;
    pointer-events: none;
    cursor: default !important;
}

.placeholder-card:hover {
    transform: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.placeholder-card .article-image,
.placeholder-card .project-image {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.placeholder-card .placeholder-icon {
    opacity: 0.4;
}

.placeholder-text {
    display: inline-block;
    background: linear-gradient(90deg, #e2e8f0 25%, #cbd5e1 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
    height: 1em;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.placeholder-meta {
    width: 120px;
    height: 0.9em;
}

.placeholder-title {
    width: 70%;
    height: 1.5rem;
    display: inline-block;
}

.placeholder-line {
    width: 100%;
    margin-bottom: 0.5rem;
    display: block;
}

.placeholder-line.short {
    width: 60%;
}

.placeholder-tag {
    width: 60px;
    height: 0.8em;
    display: inline-block;
}

/* Ensure placeholder cards don't have hover effects for links */
.placeholder-card .article-link,
.placeholder-card .project-link {
    pointer-events: none;
    opacity: 0;
}

.placeholder-card .article-overlay,
.placeholder-card .project-overlay {
    display: none;
}

/* Responsive placeholder styles */
@media (max-width: 768px) {
    .placeholder-title {
        width: 80%;
    }
}