:root {
    --is-mobile: 0;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Mobile Toggle Button */
.desktop-toggle {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--secondary-bg);
    padding: 8px;
    text-align: center;
    z-index: 1000;
    display: none;
    border-bottom: 1px solid var(--border-color);
}
.desktop-toggle button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    cursor: pointer;
}
@media (max-width: 390px) {
    :root {
        --is-mobile: 1;
    }
    .desktop-toggle {
        display: block;
    }
    body {
        padding-top: 40px;
    }
}

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent-color: #646cff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #333;
    --hover-bg: #252525;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Floating Sidebar Navigation */
.floating-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

.nav-dot:hover {
    background: var(--accent-color);
    transform: scale(1.2);
}

.nav-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.95);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.nav-dot:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #1a1a2e 100%);
}

.hero-content {
    max-width: 1000px;
    padding: 2rem;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 390px) {
    .hero {
        min-height: calc(100vh - 40px);
        padding-top: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-avatar {
        width: 200px;
        height: 200px;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero h2 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

.hero-text {
    text-align: left;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-avatar {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent-color), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    box-shadow: 0 20px 60px rgba(100, 108, 255, 0.3);
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 108, 255, 0.3);
}

/* Experience Strip */
.experience-strip {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-bottom: 4rem;
}

@media (max-width: 390px) {
    .experience-strip {
        padding: 1rem 0;
    }

    .experience-timeline {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .timeline-item {
        padding: 1rem;
        border-radius: 15px;
    }

    .timeline-item:active {
        background: var(--hover-bg);
    }

    .company-logo {
        width: 50px;
        height: 50px;
    }

    .timeline-info h4 {
        font-size: 1.1rem;
    }

    .timeline-info p {
        font-size: 0.9rem;
    }
}

.experience-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.experience-title {
    text-align: center;
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.experience-timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.company-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.timeline-info h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.timeline-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Sections */
.section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

/* Projects Section Mosaic Grid Layout */
.projects-container {
    width: 100%;
    margin-top: 4rem;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* Card Baseline styling */
.project-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 380px;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card .gif {
    height: 240px;
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.project-card .project-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card .project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.project-card .project-subtitle {
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 500;
}

.project-card .expand-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Expanded Card style - full row span, splits into 2-columns on large screens */
.project-card.expanded {
    height: auto;
    min-height: 400px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    padding: 2.5rem;
    cursor: default;
    border-color: var(--accent-color);
    box-shadow: 0 8px 32px rgba(100, 108, 255, 0.15);
}

.project-card.expanded:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(100, 108, 255, 0.15);
}

.project-card.expanded .gif.expanded-gif {
    height: 100%;
    min-height: 280px;
}

.project-card.expanded .project-content.expanded-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.project-card.expanded .project-title {
    font-size: 1.75rem;
    margin-bottom: 0.2rem;
}

.project-card.expanded .project-role {
    font-size: 1rem;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.project-card.expanded .project-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 0.5rem;
}

.project-card.expanded .return-btn {
    align-self: flex-start;
    margin-top: 1.5rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.project-card.expanded .return-btn:hover {
    background: #5a67d8;
    transform: scale(1.02);
}

/* Alternate featured item sizes for Mosaic Look */
@media (min-width: 1025px) {
    .project-card:nth-child(1) { grid-column: span 2; }
    .project-card:nth-child(7) { grid-column: span 2; }
    .project-card:nth-child(8) { grid-column: span 2; }
    
    .project-card.expanded {
        grid-column: 1 / -1 !important;
    }
}

/* Responsive grid layout queries */
@media (max-width: 1024px) {
    .mosaic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .project-card {
        height: 360px;
    }
    .project-card .gif {
        height: 220px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .project-card:nth-child(1) { grid-column: span 2; }
    .project-card:nth-child(6) { grid-column: span 2; }
    .project-card:nth-child(9) { grid-column: span 2; }
    
    .project-card.expanded {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 768px) {
    .mosaic-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        grid-column: span 1 !important;
        height: auto;
        min-height: 320px;
    }
    
    .project-card .gif {
        height: 200px;
    }
    
    .project-card.expanded {
        grid-column: 1 / -1 !important;
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .project-card.expanded .gif.expanded-gif {
        height: 200px;
        min-height: auto;
    }
}

/* Tools Section */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

@media (max-width: 390px) {
    .tools-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        overflow: hidden;
    }

    .tools-wrapper {
        position: relative;
        margin-top: 2rem;
    }

    .tool-card {
        flex: 0 0 100%;
        min-height: 300px;
        height: auto;
        margin-bottom: 1rem;
        transform: translateX(0);
        transition: transform 0.3s ease;
    }

    .tool-card.expanded {
        max-width: 100%;
    }

    .tool-card .tool-image {
        height: 180px;
        font-size: 5rem;
    }

    .tool-card .tool-content {
        padding: 1rem;
    }

    .tool-description {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Show swipe hint on mobile */
    .tools-wrapper::after {
        content: 'Swipe to navigate';
        display: block;
        text-align: center;
        color: var(--text-secondary);
        font-size: 0.9rem;
        margin-top: 1rem;
        opacity: 0.7;
    }
}

.tool-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

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

.tool-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    padding-top: 1.2rem;
    padding-bottom: 0.3rem;
}

.tool-subtitle {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tool-description {
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding-bottom: 0;
}

.tool-card.expanded .tool-description {
    max-height: 800px;
    padding-bottom: 2rem;
    font-size: 1.15rem;
}

.tool-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    height: 380px;
}
.tool-card.expanded {
    box-shadow: 0 8px 32px rgba(100,108,255,0.12);
    z-index: 2;
    min-height: 420px;
    height: auto;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}
.tool-image {
    height: 320px;
    flex-shrink: 0;
    transition: height 0.3s cubic-bezier(.4,0,.2,1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    line-height: 1;
    user-select: none;
    overflow: hidden;
    background: linear-gradient(45deg, var(--accent-color), #7c3aed);
    border-radius: 12px 12px 0 0;
    color: white;
}
.tool-card.expanded .tool-image {
    height: 380px;
}
    /* Prevent all tool cards from expanding to the same height */
    .tools-grid {
        align-items: start;
    }
/* Prevent all tool cards from expanding to the same height */
.tools-grid {
    align-items: start;
}

.expand-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.tool-card.expanded .expand-icon {
    transform: rotate(180deg);
     }
.tool-card.center-hidden {
    display: none !important;
}
/* CV Section */
.cv-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

@media (max-width: 390px) {
    .cv-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .cv-column {
        padding: 1.5rem;
    }

    .cv-section-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .cv-item {
        margin-bottom: 1.5rem;
        padding-bottom: 0.8rem;
    }

    .cv-role {
        font-size: 1.1rem;
    }

    .cv-period {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }

    .cv-company {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .cv-details li {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.4rem;
    }

    .language-item {
        padding: 0.6rem;
    }

    .language-name {
        font-size: 0.9rem;
    }

    .language-level {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
}

.cv-column {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
}

.cv-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.cv-item {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cv-item:last-child {
    border-bottom: none;
}

.cv-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 1rem;
    margin: 0 -1rem 2rem;
}

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

.cv-role {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.cv-period {
    font-size: 0.9rem;
    color: var(--accent-color);
    background: rgba(100, 108, 255, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
}

.cv-company {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.cv-details {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.cv-item.expanded .cv-details {
    max-height: 300px;
}

.cv-details li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.cv-details li::before {
    content: '▸';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
}

.expand-hint-cv {
    color: var(--accent-color);
    font-size: 0.85rem;
    opacity: 0.7;
}

.cv-item.expanded .expand-hint-cv {
    display: none;
}

/* Skills Collapsible */
    .skills-list-wide {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
        box-sizing: border-box;
    }

.skills-toggle {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.skills-toggle:hover {
    background: #5a67d8;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.skills-list.expanded {
    max-height: 300px;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(10px);
    animation: skillFadeIn 0.3s ease forwards;
}

@keyframes skillFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.languages-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.language-name {
    color: var(--text-primary);
    font-weight: 500;
}

.language-level {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
}

.language-level.native {
    background: #10b981;
    color: white;
}

.language-level.fluent {
    background: #3b82f6;
    color: white;
}

.language-level.beginner {
    background: #f59e0b;
    color: white;
}

/* Footer */
footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem 2rem;
    text-align: center;
    margin-top: 6rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .floating-nav {
        right: 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .floating-nav {
        display: none;
    }
    
    .section {
        padding: 4rem 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }

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

    .cv-column {
        padding: 1.5rem;
    }

    .experience-timeline {
        flex-direction: column;
        align-items: stretch;
    }

    .timeline-item {
        justify-content: flex-start;
    }

    .projects-track {
        padding: 0 1rem;
    }

    .project-card {
        min-width: 280px;
    }

    /* Force desktop mode overrides */
    :root.force-desktop {
        --is-mobile: 0;
    }
    :root.force-desktop .desktop-toggle {
        display: block;
    }
    :root.force-desktop .floating-nav {
        display: flex;
    }
    :root.force-desktop .hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    :root.force-desktop .hero-text {
        text-align: left;
    }
    :root.force-desktop .cv-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Mobile Animation Optimizations */
@media (max-width: 390px) {
    /* Reduce or remove hover animations */
    .project-card:hover,
    .tool-card:hover,
    .cv-item:hover,
    .timeline-item:hover {
        transform: none;
        box-shadow: none;
    }

    /* Simplify transitions */
    .project-card,
    .tool-card,
    .cv-item,
    .timeline-item {
        transition: none;
    }

    /* Disable parallax */
    .hero {
        transform: none !important;
    }

    /* Simplify expanded state transitions */
    .project-card.expanded,
    .tool-card.expanded {
        transition: all 0.2s ease;
    }

    /* Optimize skill tag animations */
    .skill-tag {
        animation: none;
        opacity: 1;
        transform: none;
    }

    /* Remove hover effects on buttons */
    .cta-button:hover {
        transform: none;
        box-shadow: none;
    }

    /* Simplify nav dot animations */
    .nav-dot {
        transition: background-color 0.2s ease;
    }
    .nav-dot:hover,
    .nav-dot.active {
        transform: none;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide the list of all game projects below carousel */
#game-projects-list { display: none !important; }

/* Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 0 1rem;
}

.article-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}
.article-card .article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.article-card .article-header {
    padding: 1rem;
}
.article-card .article-title {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: var(--primary-text-color);
}
.article-card .article-description {
    padding: 0 1rem 1rem;
    color: var(--secondary-text-color);
    font-size: 0.95rem;
    line-height: 1.4;
}
.article-card .cta-button {
    margin: 0 1rem 1rem;
    display: inline-block;
}
