:root {
    /* Deep Space Palette — matches main.css */
    --primary-color: #06b6d4;
    /* Cyan-500 */
    --primary-dark: #0891b2;
    /* Cyan-600 */
    --secondary-color: #6366f1;
    /* Indigo-500 */
    --text-dark: #f9fafb;
    /* Near-white */
    --text-medium: #94a3b8;
    /* Slate muted */
    --text-light: #64748b;
    /* Slate light */
    --background-light: #030712;
    /* Deepest Navy */
    --background-white: rgba(17, 24, 39, 0.7);
    /* Glass Card */
    --background-card: rgba(255, 255, 255, 0.03);
    /* Transparent Card BG */
    --border-color: rgba(255, 255, 255, 0.08);
    /* Subtle Border */
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.4);

    --border-radius: 12px;
    --border-radius-large: 15px;
    --spacing-small: 1rem;
    --spacing-medium: 1.5rem;
    --spacing-large: 2rem;
    --spacing-xl: 3rem;
}

/* Global Body */
body {
    background-color: var(--background-light);
    color: var(--text-dark);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-large);
}

/* Navigation */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: var(--spacing-large);
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: var(--secondary-color);
}

/* Article Header */
.article-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.article-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-small);
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-large);
    flex-wrap: wrap;
    color: var(--text-light);
    margin-bottom: var(--spacing-large);
}

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

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: var(--spacing-small) auto;
    border-radius: 2px;
}

.article-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin: 0 auto var(--spacing-xl) auto;
    display: block;
    box-shadow: var(--shadow-light);
}

/* Sections */
.intro-section {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--spacing-large);
    border-radius: var(--border-radius-large);
    margin: var(--spacing-large) 0;
    text-align: center;
}

.intro-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin: var(--spacing-xl) 0 var(--spacing-large) 0;
}

.section-header h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Cards & Grids */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-medium);
    margin: var(--spacing-xl) 0;
}

.achievement-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: var(--spacing-large) var(--spacing-medium);
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.achievement-text {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-large);
    margin: var(--spacing-large) 0;
}

.info-card {
    background: var(--background-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-medium);
    margin-bottom: var(--spacing-medium);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-light);
    transition: transform 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-small);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card ul {
    margin: 0;
    padding-left: 1.2rem;
}

.info-card li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: var(--text-medium);
}

.info-card p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-medium);
    margin: var(--spacing-large) 0;
}

.skill-category {
    background: var(--background-card);
    padding: var(--spacing-medium);
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid var(--border-color);
}

.skill-category h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-small);
    font-size: 1.1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: var(--spacing-small);
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-medium);
    margin: var(--spacing-large) 0;
}

.project-card {
    background: var(--background-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-medium);
    box-shadow: var(--shadow-light);
}

.project-card h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-small);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mentors */
.mentors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-medium);
    margin: var(--spacing-large) 0;
}

.mentor-card {
    background: linear-gradient(145deg, var(--background-card) 0%, rgba(255, 255, 255, 0.05) 100%);
    padding: var(--spacing-medium);
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid var(--primary-color);
}

.mentor-name {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.mentor-role {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Tables */
.tech-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    margin: var(--spacing-large) 0;
}

.tech-table thead tr {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.tech-table th,
.tech-table td {
    padding: var(--spacing-small);
    text-align: left;
    border: none;
}

.tech-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.tech-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.table-container {
    overflow-x: auto;
    margin: var(--spacing-large) 0;
}

/* Downloads */
.download-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-medium);
    margin: var(--spacing-xl) 0;
}

.download-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    padding: var(--spacing-large);
    border-radius: var(--border-radius-large);
    text-align: center;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.download-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-small);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: var(--spacing-small);
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Conclusion */
.conclusion-section {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(3, 7, 18, 0.5) 100%);
    padding: var(--spacing-large);
    border-radius: var(--border-radius-large);
    margin: var(--spacing-xl) 0;
    text-align: center;
    border: 2px solid var(--primary-color);
}

.conclusion-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto var(--spacing-small) auto;
}

/* News Ticker (Shared) */
.news-ticker-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    height: 40px;
    display: flex;
    align-items: center;
    z-index: 2000;
    border-top: 2px solid var(--primary-color);
}

.ticker-label {
    background: var(--primary-color);
    color: white;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    z-index: 2001;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
    padding-right: 2rem;
}

.ticker-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-wrapper {
    display: flex;
    white-space: nowrap;
    animation: ticker 60s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 3rem;
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ticker-date {
    color: #ec4899;
    font-weight: 700;
    margin-right: 0.8rem;
    font-size: 0.85rem;
    background: rgba(236, 72, 153, 0.1);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
}

@keyframes ticker {
    0% {
        transform: translate3d(100vw, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-large: 1.5rem;
        --spacing-xl: 2rem;
    }

    .container {
        padding: var(--spacing-small);
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-small);
    }

    .article-title {
        font-size: 2rem;
    }

    .download-section {
        grid-template-columns: 1fr;
    }

    .achievements-grid,
    .skills-grid,
    .projects-grid,
    .mentors-grid {
        grid-template-columns: 1fr;
    }
}