/* Shared header styles used across pages */
header {
    background: rgba(31, 25, 42, 0.8);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: inset 0 1px rgba(255, 142, 93, 0.4);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

header.header-visible {
    transform: translateY(0);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Source Code Pro', monospace;
    background: linear-gradient(135deg, #ffffff 0%, #a06ff6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #c4bbd3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: #fff;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Blog cards (used on main page and blog index) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(160, 111, 246, 0.2);
    border-color: rgba(160, 111, 246, 0.3);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.blog-card h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.4;
}

.blog-card p {
    font-size: 15px;
    color: #c4bbd3;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    display: inline-block;
    color: #a06ff6;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.3s;
}

.read-more:hover {
    color: #fff;
}
