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

:root {
    --background: hsl(210, 29%, 97%);
    --foreground: hsl(0, 0%, 10%);
    --primary: hsl(194, 100%, 46%);
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-glow: hsl(194, 100%, 60%);
    --secondary: hsl(189, 100%, 23%);
    --secondary-foreground: hsl(0, 0%, 100%);
    --muted: hsl(186, 67%, 94%);
    --muted-foreground: hsl(189, 100%, 23%);
    --border: hsl(186, 67%, 88%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(0, 0%, 10%);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, hsla(194, 100%, 46%, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, hsla(189, 100%, 23%, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
    border: 2px solid var(--background);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-glow), var(--primary));
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(246, 248, 250, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 180, 233, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(0, 180, 233, 0.08);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: var(--foreground);
}

.logo-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.5rem;
    box-shadow: 0 4px 24px hsla(194, 100%, 46%, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-icon {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 8px 32px hsla(194, 100%, 46%, 0.5);
}

.logo-text {
    font-size: 1.625rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    background: var(--muted);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px hsla(194, 100%, 46%, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 24px hsla(194, 100%, 46%, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px hsla(194, 100%, 46%, 0.5);
}

.blog-hero {
    margin-top: 4rem;
    padding: 5rem 2rem 3rem;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, var(--muted) 0%, var(--background) 100%);
}

.blog-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.blog-hero p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.5rem;
    border-radius: 3rem;
    border: 2px solid var(--border);
    font-size: 1rem;
    background: var(--card);
    transition: all 0.3s ease;
    outline: none;
}

.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px hsla(194, 100%, 46%, 0.1);
}

.search-bar button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px hsla(194, 100%, 46%, 0.4);
}

.categories {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.category-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.category-btn {
    padding: 0.625rem 1.5rem;
    border-radius: 2rem;
    border: 2px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9375rem;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px hsla(194, 100%, 46%, 0.3);
}

.blog-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.blog-main {
    min-width: 0;
}

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

.article-card {
    background: var(--card);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px hsla(189, 100%, 23%, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.article-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 48px hsla(194, 100%, 46%, 0.25);
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image {
    transform: scale(1.08);
}

.article-content {
    padding: 1.75rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.article-category {
    padding: 0.375rem 1rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
}

.article-date {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.article-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    color: var(--card-foreground);
    line-height: 1.3;
}

.article-excerpt {
    color: var(--muted-foreground);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

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

.article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.author-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.read-time {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.blog-sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

.sidebar-section {
    background: var(--card);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px hsla(189, 100%, 23%, 0.08);
}

.sidebar-section h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--card-foreground);
}

.popular-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post:hover {
    transform: translateX(6px);
}

.popular-post-image {
    width: 80px;
    height: 80px;
    border-radius: 0.75rem;
    object-fit: cover;
    flex-shrink: 0;
}

.popular-post-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.popular-post-date {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-2px);
}

.newsletter {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
}

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

.newsletter p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    border: none;
    font-size: 0.9375rem;
    outline: none;
}

.newsletter-form button {
    padding: 0.875rem;
    border-radius: 0.75rem;
    border: 2px solid white;
    background: white;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

.footer {
    background: var(--secondary);
    color: var(--secondary-foreground);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(0, 180, 233, 0.2);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-brand-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.375rem;
    box-shadow: 0 4px 20px hsla(194, 100%, 46%, 0.4);
}

.footer-brand-text {
    font-size: 1.375rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.footer h4 {
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .blog-sidebar {
        position: static;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 4rem 1.5rem 2rem;
    }

    .blog-hero h1 {
        font-size: 2.25rem;
    }

    .blog-hero p {
        font-size: 1.0625rem;
    }

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

    .category-filters {
        gap: 0.75rem;
    }

    .category-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }

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

.featured-article {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--card);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 32px hsla(194, 100%, 46%, 0.15);
    margin-bottom: 2rem;
}

.featured-article .article-image {
    height: 100%;
    min-height: 400px;
}

.featured-article .article-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.featured-article h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-article .article-content {
        padding: 2rem;
    }

    .featured-article h2 {
        font-size: 1.75rem;
    }
}