/* DigiPortal Premium Design System 2026 - Modern Tech v2 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Tech/Digital Palette - Hyper Modern */
    --primary: #2563EB;
    /* Vibrant Blue */
    --primary-hover: #1D4ED8;
    --accent: #38bdf8;
    /* Sky 400 */
    --accent-glow: rgba(56, 189, 248, 0.4);

    --bg: #F0F4F8;
    /* Cool Grey/Blue tint base */
    --surface: rgba(255, 255, 255, 0.7);
    /* Glassmorphism base */
    --surface-alt: rgba(255, 255, 255, 0.4);

    --text: #0F172A;
    /* Slate 900 */
    --text-muted: #64748B;

    --border: rgba(255, 255, 255, 0.6);
    --border-hover: #38bdf8;

    --nav-height: 80px;
    --container-width: 1280px;

    /* Soft, colorful shadows */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 20px 40px -5px rgba(37, 99, 235, 0.15), 0 10px 10px -5px rgba(37, 99, 235, 0.08);

    --radius-sm: 8px;
    --radius-md: 20px;
    --radius-lg: 32px;
}

[data-theme="dark"] {
    --bg: #030712;
    /* Rich Black */
    --surface: rgba(17, 24, 39, 0.7);
    /* Deep grey glass */
    --surface-alt: rgba(30, 41, 59, 0.5);

    --text: #F1F5F9;
    --text-muted: #94A3B8;

    --border: rgba(255, 255, 255, 0.1);
    --border-hover: #38bdf8;

    --primary: #3B82F6;
    --accent: #22D3EE;

    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 0 30px rgba(59, 130, 246, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    /* Subtle Mesh Gradient Background */
    background-image:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(56, 189, 248, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(37, 99, 235, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- MODERN GLASS NAVBAR --- */
.navbar {
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.6);
    /* High transparency */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(3, 7, 18, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text);
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: rgba(0, 0, 0, 0.03);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:hover {
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
}

/* --- IMMERSIVE HERO SECTION --- */
.hero-section {
    padding: 40px 0;
}

.hero-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 21/9;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-wrapper:hover .hero-img {
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.9) 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.hero-badge {
    background: rgba(37, 99, 235, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    max-width: 900px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-meta {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    opacity: 0.9;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    gap: 20px;
}

/* --- MODERN GLASS CARDS --- */
.updates-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.article-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .article-card:hover {
    background: rgba(30, 41, 59, 0.8);
}

.card-img-wrap {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.card-content {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    flex: 1;
    line-height: 1.3;
}

.card-excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
}

/* --- SINGLE ARTICLE --- */
.article-single-container {
    max-width: 860px;
    margin: 80px auto;
}

.single-header {
    text-align: center;
    margin-bottom: 60px;
}

.single-category {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-weight: 700;
    border-radius: 30px;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.single-title {
    font-size: 4rem;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
}

.single-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
}

.single-img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 60px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
}

.single-body {
    font-size: 1.35rem;
    line-height: 1.9;
    color: var(--text);
}

.single-body p {
    margin-bottom: 2.5rem;
}

.single-body h2 {
    font-size: 2.5rem;
    margin: 4rem 0 2rem;
    letter-spacing: -0.02em;
    position: relative;
}

.single-body h3 {
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
}

.single-body ul,
.single-body ol {
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}

.single-body li {
    margin-bottom: 1rem;
}

.single-body blockquote {
    font-size: 1.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--secondary);
    text-align: center;
    margin: 5rem 0;
    line-height: 1.4;
    padding: 0 40px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- FOOTER --- */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 100px 0 60px;
    margin-top: 120px;
    backdrop-filter: blur(20px);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    font-family: 'Outfit';
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 24px;
    display: block;
    letter-spacing: -0.03em;
}

.footer-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 320px;
    line-height: 1.8;
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 32px;
    font-weight: 700;
}

.footer ul li {
    margin-bottom: 16px;
}

.footer a {
    color: var(--text-muted);
    font-size: 16px;
    transition: 0.2s;
}

.footer a:hover {
    color: var(--primary);
    transform: translateX(5px);
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: 0.3s;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 40px;
    font-size: 14px;
    opacity: 0.7;
}

/* --- RESPONSIVE & UTILS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

    .hero-wrapper {
        aspect-ratio: 16/9;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .single-title {
        font-size: 3rem;
    }
}

/* --- RELATED ARTICLES --- */
.related-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary);
}

.related-img-wrap {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}

.related-title {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr !important;
    }

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

    .hero-wrapper {
        aspect-ratio: 1/1;
    }

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

    /* Reduced from 2.2 for better fit */
    .single-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    /* Adjusted for mobile */
    .single-body {
        font-size: 1.125rem;
    }

    /* ~18px for mobile reading */
    .single-body h2 {
        font-size: 1.75rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--surface);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 30px;
    display: none;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.mobile-menu a {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}