@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4338ca; /* Premium Indigo for high-end look */
    --primary-light: #6366f1;
    --secondary: #0f172a; /* Midnight remains the same */
    --accent: #38bdf8; /* Sky Blue Accent */
    --background: #ffffff;
    --surface: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

/* Glassmorphism utility for unique feel */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* Navbar with Unique Mobile Menu */
nav {
    background: var(--background);
    border-bottom: 2px solid var(--surface);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1rem;
}

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

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--secondary);
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        text-align: center;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
}

/* Unique Hero Section */
.hero {
    padding: 6rem 0;
    text-align: left;
    background: linear-gradient(to right, #ffffff, #f1f5f9);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

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

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.75rem;
    }
    .hero p {
        margin: 0 auto;
    }
}

/* Portfolio-style Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0;
    }
}

.card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    transform: translateY(-8px);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    margin-bottom: 1.5rem;
}

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

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

.card-category {
    padding: 0.4rem 0.8rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 99px;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;
}

.card-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.card-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Load More Button - Unique Style */
.load-more-container {
    display: flex;
    justify-content: center;
    padding-bottom: 5rem;
}

.btn-load-more {
    background: var(--secondary);
    color: white;
    padding: 1rem 3rem;
    border-radius: 99px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.3);
}

.btn-load-more:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -3px rgba(67, 56, 202, 0.4);
}

.btn-load-more:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Single Post View Improvements */
.post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.post-header {
    text-align: center;
    margin-bottom: 4rem;
}

.post-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 1.5rem 0;
    color: var(--secondary);
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2.25rem;
    }
}

.post-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}

.post-content {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #334155;
}

.post-content p {
    margin-bottom: 2rem;
}

.post-content img {
    width: 100%;
    border-radius: var(--radius);
    margin: 3rem 0;
}

/* Validation Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-input {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Footer Unique Style */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .footer-grid div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid ul {
        align-items: center;
    }
}

footer {
    background: var(--secondary);
    color: #94a3b8;
    padding: 6rem 0 3rem;
}

footer .logo {
    color: white;
}

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

footer h4 {
    color: white;
    margin-bottom: 1.5rem;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: white;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    padding: 2rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item:not(:last-child)::after {
    content: "/";
    color: #cbd5e1;
    font-size: 0.8rem;
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 600;
}

/* Author and E-E-A-T signals */
.author-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
    background: var(--surface);
    border-radius: var(--radius);
    margin: 4rem 0;
    border: 1px solid var(--border);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

.author-info h4 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.author-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.post-status {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
}

.status-badge svg {
    width: 16px;
    height: 16px;
}
