/* Blog Page Styles - Professional Version with Cool Features */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #3b82f6;
    --accent: #8b5cf6;
    --bg-dark: #ffffff;
    --bg-darker: #f3f4f6;
    --bg-card: #f9fafb;
    --text-light: #1f2937;
    --text-gray: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --code-bg: #1e293b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
body.dark-mode {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --bg-dark: #111827;
    --bg-darker: #1f2937;
    --bg-card: #374151;
    --text-light: #f9fafb;
    --text-gray: #9ca3af;
    --border: #4b5563;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
    position: relative;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.custom-cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    transform: translate(-50%, -50%);
    opacity: 0;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary);
    z-index: 1001;
    transition: width 0.3s;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

body.dark-mode .navbar {
    background: rgba(17, 24, 39, 0.8);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.big-b {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    transition: var(--transition);
}

.logo:hover .big-b {
    transform: rotate(360deg);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Search Toggle */
.search-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.search-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: rotate(360deg);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* Search Bar */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.search-bar.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

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

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.search-container input {
    width: 100%;
    padding: 15px 45px 15px 50px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-light);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
}

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

.search-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.search-close:hover {
    color: var(--error);
    transform: translateY(-50%) scale(1.2);
}

.search-results {
    max-width: 600px;
    margin: 10px auto 0;
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--bg-darker);
}

.search-result-item h4 {
    margin-bottom: 5px;
    color: var(--text-light);
}

.search-result-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Particles Container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--primary-light);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Gradient Sphere */
.gradient-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, var(--primary-light) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 10s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.15; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    margin-bottom: 20px;
}

.badge-text {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.hero-button.primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

.hero-button.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-button.secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border);
}

.hero-button.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    animation: fadeInUp 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-gray);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-gray);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

@keyframes fadeInUp {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(10px); }
}

/* Main Content */
.main-content {
    padding: 60px 40px;
    background: var(--bg-dark);
    position: relative;
    z-index: 2;
}

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

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-gray);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Featured Post */
.featured-post {
    margin-bottom: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.featured-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

/* Blog Posts Grid */
.blogs-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Blog Post Card */
.blog-post {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    animation: fadeIn 0.5s ease-out;
}

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

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.blog-post:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-categories {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.category-tag {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
}

.reading-time {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(5px);
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.post-stats {
    display: flex;
    gap: 15px;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-gray);
    font-size: 0.85rem;
    transition: var(--transition);
}

.post-stats span:hover {
    color: var(--primary);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 12px;
}

/* Code Preview */
.code-preview {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--code-bg);
    color: #fff;
    padding: 15px;
    transform: translateY(100%);
    transition: var(--transition);
    border-top: 1px solid var(--border);
}

.blog-post:hover .code-preview {
    transform: translateY(0);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.code-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--primary-light);
}

.copy-code {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.copy-code:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.code-preview pre {
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #d4d4d4;
    overflow-x: auto;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 50px 0;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-light);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.load-more-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.load-more-btn i {
    transition: var(--transition);
}

.load-more-btn:hover i {
    transform: translateY(3px);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 30px;
    padding: 60px;
    margin: 80px 0 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.newsletter-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.newsletter-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 500px;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.form-group input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus {
    outline: none;
    border-color: white;
}

.subscribe-btn {
    padding: 15px 30px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-note {
    font-size: 0.85rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.newsletter-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-circle {
    text-align: center;
}

.stat-circle .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-circle .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 60px 40px 20px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-col h3 {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-col p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px) rotate(360deg);
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
}

.contact-info-list li i {
    width: 20px;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-gray);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom i {
    color: var(--error);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px) scale(1.1);
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 3px;
    height: 200px;
    background: var(--border);
    border-radius: 3px;
    z-index: 998;
}

.reading-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--progress, 0%);
    background: var(--primary);
    border-radius: 3px;
    transition: height 0.3s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .newsletter-container {
        grid-template-columns: 1fr;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-center {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-darker);
        padding: 100px 40px;
        transition: left 0.3s;
        z-index: 1001;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-center.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 20px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .blogs-section {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .newsletter-section {
        padding: 40px 20px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .custom-cursor,
    .custom-cursor-follower {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 40px 20px;
    }
    
    .post-thumbnail {
        height: 180px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    .category-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection Styling */
::selection {
    background: var(--primary);
    color: white;
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--border) 25%, var(--bg-card) 50%, var(--border) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: var(--bg-darker);
    color: var(--text-light);
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    .footer,
    .back-to-top,
    .reading-progress,
    .newsletter-section,
    .load-more-container,
    .category-filter {
        display: none !important;
    }
    
    .blog-post {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #000;
    }
}
/* ==================== ADD THESE NEW STYLES ==================== */

/* Share Button Styles */
.share-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-left: 5px;
}

.share-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

body.dark-mode .share-btn:hover {
    background: var(--primary);
    color: white;
}

/* Tooltip Styles */
.tooltip {
    position: fixed;
    background: var(--bg-darker);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    z-index: 10000;
    pointer-events: none;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: tooltipFade 0.2s ease-out;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--bg-darker) transparent transparent transparent;
}

body.dark-mode .tooltip::after {
    border-color: var(--bg-darker) transparent transparent transparent;
}

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

/* Custom Notification */
.custom-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-darker);
    color: var(--text-light);
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    z-index: 10000;
    transition: transform 0.3s ease-out;
    font-weight: 500;
}

.custom-notification.show {
    transform: translateX(-50%) translateY(0);
}

.custom-notification.success {
    border-left: 4px solid var(--success);
}

.custom-notification.success i {
    color: var(--success);
}

.custom-notification.error {
    border-left: 4px solid var(--error);
}

.custom-notification.error i {
    color: var(--error);
}

.custom-notification i {
    font-size: 1.2rem;
}

/* No Scroll Class */
body.no-scroll {
    overflow: hidden;
}

/* Featured Post Info Styles */
.featured-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.featured-info p {
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.featured-image {
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}

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

.featured-post:hover .featured-image img {
    transform: scale(1.05);
}

.read-more.featured {
    align-self: flex-start;
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.read-more.featured:hover {
    background: var(--primary-dark);
    transform: translateX(5px);
    gap: 15px;
}

/* Mark/Hightlight Styles */
mark {
    background: var(--primary);
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
}

/* Typewriter Text Styles */
.typewriter-text {
    font-family: 'Fira Code', monospace;
    line-height: 1.8;
    color: var(--text-light);
}

.typewriter-text code {
    background: var(--code-bg);
    color: #d4d4d4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.typewriter-text strong {
    color: var(--primary);
    font-weight: 600;
}

.typewriter-text ul, 
.typewriter-text ol {
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.typewriter-text li {
    margin-bottom: 5px;
    color: var(--text-gray);
}

/* Business Category Tag */
.category-tag.business {
    background: var(--accent);
}

.category-tag.ecommerce {
    background: var(--warning);
    color: var(--bg-dark);
}

.category-tag.pricing {
    background: var(--success);
}

.category-tag.hiring {
    background: var(--secondary);
}

/* Contact Info in Code Preview */
.code-preview .contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

.code-preview .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d4d4d4;
}

.code-preview .contact-item i {
    color: var(--primary-light);
    width: 20px;
}

/* Hire Me Badge */
.hire-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--success);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hire-badge i {
    font-size: 0.7rem;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .featured-info {
        padding: 30px;
    }
    
    .featured-info h2 {
        font-size: 1.5rem;
    }
    
    .custom-notification {
        width: 90%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .tooltip {
        display: none; /* Hide tooltips on mobile */
    }
}

@media (max-width: 480px) {
    .featured-info {
        padding: 20px;
    }
    
    .featured-info h2 {
        font-size: 1.3rem;
    }
    
    .featured-info p {
        font-size: 0.9rem;
    }
    
    .share-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* Animation for new posts */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.blog-post[data-id="5"],
.blog-post[data-id="6"],
.blog-post[data-id="7"],
.blog-post[data-id="8"] {
    animation: slideIn 0.5s ease-out;
}

/* Print styles for new elements */
@media print {
    .share-btn,
    .custom-notification,
    .tooltip,
    .hire-badge {
        display: none !important;
    }
}