/* General Body & Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --trackbot-blue: #0A74DA;
    --trackbot-blue-dark: #085aab;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1440px; /* Expanded width */
    margin: 0 auto;
    padding: 0 2rem; /* Increased padding for wider layout */
}

/* Header & Navigation */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* More space for the larger logo */
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.logo-img {
    height: 40px; /* Increased logo size */
    width: auto; /* Maintain aspect ratio */
}

.nav-links {
    display: none; /* Hidden on mobile, shown on desktop */
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        gap: 2rem; /* Increased gap for wider layout */
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--trackbot-blue);
}

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

.user-icon {
    height: 40px;
    width: 40px;
    background-color: var(--trackbot-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-image:
        linear-gradient(rgba(10, 116, 218, 0.1), rgba(255, 255, 255, 0.9)),
        url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(229,231,235,0.5)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    background-size: cover, auto;
    padding: 6rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

/* Blog Section */
.blog-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

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

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on large screens */
    }
}

.blog-card {
    background-color: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

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

.card-tag {
    color: var(--trackbot-blue);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: var(--text-dark);
}

.card-excerpt {
    color: var(--text-light);
    font-size: 1rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

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

.card-author {
    color: var(--text-light);
    font-size: 0.875rem;
}

.card-button {
    background-color: var(--trackbot-blue);
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.card-button:hover {
    background-color: var(--trackbot-blue-dark);
}

/* Footer */
.footer {
    background-color: #111827; /* Dark Gray */
    color: #9ca3af; /* Light Gray Text */
    text-align: center;
    padding: 1.5rem 0;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeInAnimation 1s ease-in-out forwards;
}

.hero h1.fade-in {
    animation-delay: 0.2s;
}

.hero p.fade-in {
    animation-delay: 0.4s;
}

.blog-container.fade-in {
    animation-delay: 0.6s;
}


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