/* Root Variables: Premium Color Palette & Transitions */
:root {
    --bg: #0f172a;
    --surface: #1e293b;
    --acc-primary: #6366f1;
    --acc-secondary: #f43f5e;
    --text-main: #f8fafc;
    --text-mute: #94a3b8;
    --border: rgba(148, 163, 184, 0.1);
    --glass: rgba(30, 41, 59, 0.7);
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: transparent;
    transition: var(--transition);
}

/* Navigation: Glassmorphism */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: var(--glass);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-mute);
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--acc-primary);
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-btn {
    color: var(--text-mute);
    display: flex;
    align-items: center;
}

.icon-btn:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-mute);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

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

/* Buttons */
.primary-btn {
    background: var(--acc-primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
}

.primary-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.secondary-btn {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Grid Layouts & Cards */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 6rem 0 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
}

.view-all {
    color: var(--acc-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.resource-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--acc-secondary);
    color: white;
    padding: 0.2rem 0.8rem;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 9999px;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-mute);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.category {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.card-excerpt {
    color: var(--text-mute);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resource-stats {
    font-size: 0.85rem;
    color: var(--text-mute);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.download-link {
    color: var(--acc-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-link:hover {
    text-decoration: underline;
}

/* Article Items */
.article-list {
    display: grid;
    gap: 2rem;
}

.article-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid transparent;
    transition: var(--transition);
}

.article-item:hover {
    border-left-color: var(--acc-primary);
    background: rgba(255, 255, 255, 0.05);
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-mute);
    margin-bottom: 0.5rem;
}

.article-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Animations & Utility */
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

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

/* Footer Section */
.main-footer {
    margin-top: 8rem;
    background: var(--surface);
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo .logo-text { font-size: 2rem; font-weight: 800; }
.footer-logo p { color: var(--text-mute); max-width: 300px; }

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

.link-group h4, .social-group h4 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 600;
}

.link-group a {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-mute);
}

.social-icons {
    display: flex;
    gap: 1.2rem;
}

.social-icons a {
    color: var(--text-mute);
    font-size: 1.4rem;
}

.social-icons a:hover {
    color: var(--acc-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 3rem;
    text-align: center;
    color: var(--text-mute);
    font-size: 0.9rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 3rem; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr 1fr; gap: 4rem; }
    .container { padding: 0 1.5rem; }
}
