/* Welluz Landing Page Styles */

/* CSS Variables - Design System */
:root {
    /* Welluz Brand Colors */
    --primary: 223 73% 53%; /* Sapphire Blue */
    --primary-foreground: 0 0% 100%;
    
    --secondary: 154 63% 44%; /* Emerald Green */
    --secondary-foreground: 0 0% 100%;
    
    --accent: 38 92% 56%; /* Golden Orange */
    --accent-foreground: 0 0% 100%;
    
    --background: 210 20% 96%; /* Light Gray */
    --foreground: 220 11% 31%; /* Dark Slate */

    --card: 0 0% 100%;
    --card-foreground: 220 11% 31%;

    --muted: 210 20% 96%;
    --muted-foreground: 220 11% 45%;

    --border: 220 13% 91%;
    
    /* Shadows */
    --shadow-elegant: 0 10px 30px -10px hsl(var(--primary) / 0.3);
    --shadow-soft: 0 4px 20px -4px hsl(220 11% 31% / 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: hsl(var(--foreground));
    overflow-x: hidden;
}

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

/* Main Container */
.main-container {
    min-height: 100vh;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Background Elements */
.background-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
}

.bg-orb-1 {
    top: 25%;
    left: 25%;
    width: 16rem;
    height: 16rem;
    background: rgba(255, 255, 255, 0.5);
    animation: float 6s ease-in-out infinite;
}

.bg-orb-2 {
    top: 33%;
    right: 25%;
    width: 12rem;
    height: 12rem;
    background: hsl(var(--accent) / 0.3);
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
}

.bg-orb-3 {
    bottom: 25%;
    left: 33%;
    width: 8rem;
    height: 8rem;
    background: hsl(var(--secondary) / 0.3);
    animation: float 7s ease-in-out infinite;
    animation-delay: 1s;
}

/* Header */
/* Sticky Header */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn 0.8s ease-out;
}

.logo-container {
    position: relative;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(var(--accent));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: glow 2s ease-in-out infinite alternate;
}

.logo-icon i {
    width: 1.5rem;
    height: 1.5rem;
    color: hsl(var(--accent-foreground));
}

.sparkles-icon {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 1rem;
    height: 1rem;
    color: hsl(var(--accent));
    animation: float 3s ease-in-out infinite;
}

.brand-name {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    letter-spacing: -0.025em;
}

.header-info {
    display: flex; 
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.info-text {
    transition: color 0.3s ease;
    cursor: pointer;
}

.info-text:hover {
    color: white;
}

a.info-text {
    color: white; /* or rgba(255, 255, 255, 0.8) */
    text-decoration: none;
}

.pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: hsl(var(--accent));
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.header-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.header-bg-orb-1 {
    top: 0;
    left: 25%;
    width: 8rem;
    height: 8rem;
    background: rgba(255, 255, 255, 0.05);
    animation: float 6s ease-in-out infinite;
}

.header-bg-orb-2 {
    top: 2rem;
    right: 33%;
    width: 6rem;
    height: 6rem;
    background: hsl(var(--accent) / 0.1);
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.hero-section {
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-out;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: hsl(var(--accent));
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    line-height: 1.1;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

.title-well {
    position: relative;
    display: inline-block;
}

.title-sparkles {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 2rem;
    height: 2rem;
    color: hsl(var(--accent));
    animation: float 3s ease-in-out infinite;
}

.title-gradient {
    background: linear-gradient(to right, hsl(var(--accent)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 32rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
    animation: fadeIn 1.2s ease-out;
}

.feature-highlights {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 1.4s ease-out;
}

.feature-item i {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--accent));
}

.feature-item span {
    font-size: 0.875rem;
    font-weight: 500;
}

.cta-section {
    padding-top: 2rem;
    animation: fadeIn 1.6s ease-out;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-elegant);
    transition: all 0.3s ease;
    animation: glow 2s ease-in-out infinite alternate;
}

.cta-button:hover {
    background: hsl(var(--accent) / 0.9);
    transform: scale(1.05);
    box-shadow: var(--shadow-soft);
}

.cta-arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(0.25rem);
}

.social-proof {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Refined Footer */
.footer {
    width: 100%;
    padding: 3rem 0 1rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.copyright {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.heart-icon {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--accent));
    animation: pulse 2s infinite;
    fill: currentColor;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    animation: fadeIn 1.8s ease-out;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.social-link i {
    width: 1rem;
    height: 1rem;
}

.decorative-line {
    margin-top: 1.5rem;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.footer-glow-1 {
    bottom: 0;
    left: 25%;
    width: 10rem;
    height: 5rem;
    background: hsl(var(--secondary) / 0.2);
}

.footer-glow-2 {
    bottom: 0;
    right: 25%;
    width: 8rem;
    height: 4rem;
    background: hsl(var(--accent) / 0.2);
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal.active .modal-backdrop {
    opacity: 1;
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 32rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95) translateY(2rem);
    opacity: 0;
    transition: all 0.5s ease;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.modal-bg-orb-1 {
    top: -1rem;
    right: -1rem;
    width: 5rem;
    height: 5rem;
    background: hsl(var(--accent) / 0.2);
    animation: float 6s ease-in-out infinite;
}

.modal-bg-orb-2 {
    bottom: -1.5rem;
    left: -1.5rem;
    width: 6rem;
    height: 6rem;
    background: hsl(var(--primary) / 0.2);
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: hsl(var(--foreground) / 0.7);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: hsl(var(--foreground));
    transform: scale(1.1);
}

.modal-close i {
    width: 1.25rem;
    height: 1.25rem;
}

.modal-inner {
    padding: 2rem;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon-container {
    position: relative;
    display: inline-flex;
    margin-bottom: 1rem;
}

.modal-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--accent) / 0.8));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: glow 2s ease-in-out infinite alternate;
}

.modal-icon i {
    width: 2rem;
    height: 2rem;
    color: hsl(var(--accent-foreground));
}

.modal-status-dot {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    background: hsl(var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-inner-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.modal-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: hsl(var(--muted-foreground));
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: hsl(var(--foreground));
    font-weight: 500;
}

.form-input,
.form-textarea {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: 1px solid hsl(var(--border) / 0.5);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    color: hsl(var(--foreground));
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.8);
    border-color: hsl(var(--primary));
    transform: scale(1.02);
}

.form-textarea {
    resize: none;
    font-family: inherit;
}

.form-submit {
    width: 100%;
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    padding: 1rem;
    border-radius: 1rem;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-elegant);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-submit:hover:not(:disabled) {
    background: hsl(var(--accent) / 0.9);
    transform: scale(1.02);
    box-shadow: var(--shadow-soft);
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.submit-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.form-submit:hover .submit-icon {
    transform: translateX(0.25rem);
}

.submit-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loading-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: hsl(var(--card));
    color: hsl(var(--card-foreground));
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-elegant);
    border: 1px solid hsl(var(--border));
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
    max-width: 24rem;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.toast-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--secondary));
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.6;
}


/* Blog Content Area - Updated Style */
        .blog-page {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 2rem;
            padding: 4rem 1rem;
            margin: 2rem auto;
            box-shadow: var(--shadow-soft);
            position: relative;
            z-index: 10;
            display: flex;
            flex-direction: column;
            flex: 1;
        }
        
        /* This rule makes the blog page container wider */
        .blog-page.container {
            max-width: 1400px;
            padding: 0;
        }

        .blog-header {
            text-align: center;
            margin-bottom: 3rem;
            padding: 0 1rem;
        }

        .blog-title {
            font-size: 3rem;
            font-weight: bold;
            color: white;
            margin-bottom: 0.5rem;
        }

        .blog-subtitle {
            font-size: 1.125rem;
            color: rgba(255, 255, 255, 0.9);
            max-width: 600px;
            margin: 0 auto;
        }

        /* Refined Controls Section */
        .blog-controls {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            padding: 0 1rem;
        }

        .search-container {
            position: relative;
            flex-grow: 1;
        }

        .search-input {
            width: 100%;
            padding: 0.75rem 3rem 0.75rem 1rem;
            border-radius: 0.75rem;
            border: 1px solid rgba(255, 255, 255, 0.3);
            background: rgba(255, 255, 255, 0.15);
            color: white;
            transition: all 0.3s ease;
        }

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

        .search-input:focus {
            outline: none;
            border-color: white;
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
        }

        .search-icon {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255, 255, 255, 0.7);
            pointer-events: none;
        }

        .category-dropdown {
            padding: 0.75rem 1rem;
            border-radius: 0.75rem;
            border: 1px solid rgba(255, 255, 255, 0.3);
            background: rgba(255, 255, 255, 0.15);
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .category-dropdown:hover {
            border-color: white;
        }

        .category-dropdown option {
            background: hsl(var(--card));
            color: hsl(var(--card-foreground));
        }

        .view-switcher {
            display: flex;
            gap: 0.5rem;
        }

        .view-btn {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: 0.75rem;
            border-radius: 0.75rem;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(8px);
        }

        .view-btn.active,
        .view-btn:hover {
            background: hsl(var(--accent));
            color: hsl(var(--accent-foreground));
            border-color: hsl(var(--accent));
        }
        
        /* Blog Card Styles */
        .blog-card {
            border-radius: 1.5rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            overflow: hidden;
            text-decoration: none;
            background: transparent;
        }
        
        .blog-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .blog-card-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 1.5rem 1.5rem 0 0;
            transition: transform 0.3s ease;
        }

        .blog-card:hover .blog-card-image {
            transform: scale(1.03);
        }
        
        /* This is the new container for the card content with the frosted background */
        .blog-card-body {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            padding: 1.5rem;
            color: white;
        }

        .blog-card-content {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .blog-card-meta-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 0.5rem;
        }

        .blog-card-meta-top .author {
            font-weight: 500;
        }

        .blog-card-meta-top .bookmark {
            font-size: 1.25rem;
            color: hsl(var(--accent));
        }

        .blog-card-tags {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }

        .blog-card-tags span {
            font-size: 0.75rem;
            font-weight: 500;
            padding: 0.25rem 0.75rem;
            border-radius: 0.5rem;
            background: rgba(255, 255, 255, 0.1);
            color: hsl(var(--accent));
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .blog-card-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: white;
            line-height: 1.3;
        }

        .blog-card-meta {
            display: flex;
            align-items: center;
            gap: 1rem;
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.8);
        }
        
        .blog-card-meta-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .blog-card-meta-item i {
            font-size: 1rem;
        }

        .blog-card-excerpt {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.6;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow: hidden;
            -webkit-line-clamp: 3;
            margin-top: 1rem;
        }

        .read-more-btn {
            display: none;
            margin-top: 1.5rem;
            background: transparent;
            border: 1px solid white;
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: 0.75rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .read-more-btn:hover {
            background: white;
            color: hsl(var(--primary));
        }
        
        /* Grid Layout */
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
            gap: 3.5rem;
            padding: 0 2rem; /* Added padding to prevent cards from touching the edges */
        }

        /* List Layout */
        .blog-list {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
            padding: 0 1rem;
        }
        
        .blog-list .blog-card {
            display: flex;
            flex-direction: row;
            align-items: center;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 1rem;
            border-radius: 1.5rem;
        }
        
        .blog-list .blog-card-image {
            width: 250px;
            height: 180px;
            object-fit: cover;
            flex-shrink: 0;
            border-radius: 1rem;
        }

        .blog-list .blog-card-body {
            background: transparent;
            backdrop-filter: none;
            border-top: none;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            flex-grow: 1;
        }
        
        .blog-list .read-more-btn {
            display: inline-block; /* Show button only in list view */
            align-self: flex-start;
        }

        .loading-indicator {
            text-align: center;
            padding: 2rem;
            font-size: 1rem;
            color: white;
            display: none;
        }


/* =========================
   Blog Detail Page Styles
   ========================= */

        /* Blog Detail Page Styles */
        .blog-detail-page {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 2rem;
            padding: 4rem 1rem;
            margin: 2rem auto;
            box-shadow: var(--shadow-soft);
            position: relative;
            z-index: 10;
        }
        
        .blog-detail-page.container {
            max-width: 1400px;
        }
        
        /* Two-Column Layout */
        .article-layout {
            display: grid;
            grid-template-columns: 1fr;
            gap: 3rem;
            padding: 0 1rem;
        }

        @media (min-width: 1024px) {
            .article-layout {
                grid-template-columns: 2fr 1fr;
            }
        }
        
        .article-main {
            padding-right: 2rem;
            border-right: 1px solid rgba(255, 255, 255, 0.2);
        }

        .sidebar {
            padding-left: 2rem;
        }

        .article-header {
            text-align: center;
            margin-bottom: 2.5rem;
        }
        
        .article-title {
            font-size: 3rem;
            font-weight: bold;
            color: white;
            line-height: 1.2;
            margin-bottom: 1rem;
        }
        
        .article-meta {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1.5rem;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.9rem;
        }

        .article-meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .article-meta-item i {
            color: hsl(var(--accent));
            font-size: 1rem;
        }
        
        .featured-image {
            width: 100%;
            height: 500px;
            object-fit: cover;
            border-radius: 1.5rem;
            margin-bottom: 3rem;
        }
        
        .article-content {
            color: white;
        }
        
        .article-content p {
            margin-bottom: 1.5rem;
            font-size: 1.125rem;
            opacity: 0.9;
        }
        
        .article-content h2 {
            font-size: 2rem;
            font-weight: bold;
            margin-top: 3rem;
            margin-bottom: 1rem;
            color: hsl(var(--accent));
        }

        .quote-block {
            border-left: 4px solid hsl(var(--accent));
            padding-left: 1.5rem;
            margin: 2rem 0;
            font-style: italic;
            font-size: 1.25rem;
            line-height: 1.5;
            color: rgba(255, 255, 255, 0.8);
        }
        
        .author-bio {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 1rem;
            padding: 2rem;
            margin-top: 4rem;
        }

        .author-bio-image {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid white;
        }

        .author-details h3 {
            font-size: 1.25rem;
            color: white;
            margin-bottom: 0.25rem;
        }

        .author-details p {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.8);
        }

        /* Sidebar Styles */
        .sidebar-content {
            position: sticky;
            top: 2rem;
        }
        
        .sidebar-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 1.5rem;
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .sidebar-card h3 {
            font-size: 1.25rem;
            font-weight: bold;
            color: white;
            margin-bottom: 1rem;
        }
        
        .social-share a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 3rem;
            height: 3rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            font-size: 1.25rem;
            transition: all 0.3s ease;
            text-decoration: none;
        }
        
        .social-share a:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }
        
        .sidebar-cta {
            text-align: center;
        }

        .sidebar-cta .cta-button {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: hsl(var(--accent));
            color: hsl(var(--accent-foreground));
            padding: 1rem 1.5rem;
            font-size: 1rem;
            font-weight: 600;
            border-radius: 1rem;
            border: none;
            cursor: pointer;
            box-shadow: var(--shadow-elegant);
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .sidebar-cta .cta-button:hover {
            background: hsl(var(--accent) / 0.9);
            transform: scale(1.05);
            box-shadow: var(--shadow-soft);
        }

        .sidebar-toc {
            list-style: none;
            padding: 0;
        }

        .sidebar-toc a {
            display: block;
            padding: 0.5rem 0;
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: all 0.3s ease;
            border-left: 2px solid transparent;
            padding-left: 0.5rem;
        }
        
        .sidebar-toc a:hover {
            color: white;
            border-left-color: hsl(var(--accent));
        }

        .sidebar-toc a.active {
            color: hsl(var(--accent));
            border-left-color: hsl(var(--accent));
            font-weight: bold;
        }

        /* Article Navigation */
        .article-navigation {
            display: flex;
            justify-content: space-between;
            margin-top: 4rem;
        }

        .nav-link {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: bold;
            color: white;
            text-decoration: none;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 1rem;
            padding: 1rem 1.5rem;
            transition: all 0.3s ease;
        }
        
        .nav-link:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-5px);
            box-shadow: var(--shadow-soft);
        }

        /* Comment Section */
        .comment-section {
            margin-top: 4rem;
            padding: 2rem;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 1.5rem;
        }

        .comments-heading {
            font-size: 1.5rem;
            color: white;
            margin-bottom: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: color 0.3s ease;
        }
        
        .comments-heading:hover {
            color: hsl(var(--accent));
        }

        .comments-heading i {
            transition: transform 0.3s ease;
        }
        
        .comment-form-container {
            display: none;
            overflow: hidden;
        }
        
        .comment-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .comment-input, .comment-textarea {
            width: 100%;
            padding: 0.75rem 1rem;
            border-radius: 0.75rem;
            border: 1px solid rgba(255, 255, 255, 0.3);
            background: rgba(255, 255, 255, 0.15);
            color: white;
            transition: all 0.3s ease;
        }
        
        .comment-input::placeholder, .comment-textarea::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

        .comment-input:focus, .comment-textarea:focus {
            outline: none;
            border-color: white;
        }
        
        .comment-textarea {
            resize: vertical;
            min-height: 100px;
        }

        .comment-submit {
            background: hsl(var(--accent));
            color: hsl(var(--accent-foreground));
            padding: 0.75rem 1.5rem;
            border-radius: 0.75rem;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: bold;
        }

        .comment-submit:hover {
            background: hsl(var(--accent) / 0.9);
            transform: translateY(-2px);
        }
        
        /* Breadcrumbs */
        .breadcrumbs {
            margin-bottom: 2rem;
            font-size: 0.9rem;
        }
        
        .breadcrumbs ul {
            display: flex;
            list-style: none;
            gap: 0.5rem;
            color: rgba(255, 255, 255, 0.6);
        }
        
        .breadcrumbs a {
            text-decoration: none;
            color: rgba(255, 255, 255, 0.8);
            transition: color 0.3s ease;
        }
        
        .breadcrumbs a:hover {
            color: white;
        }

        /* Animations */
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Responsive Overrides */
        @media (max-width: 1024px) {
            .article-main {
                border-right: none;
                padding-right: 0;
            }
            .sidebar {
                padding-left: 0;
            }
        }
        @media (max-width: 768px) {
            .article-title {
                font-size: 2rem;
            }
            .article-content p {
                font-size: 1rem;
            }
            .article-content h2 {
                font-size: 1.5rem;
            }
            .quote-block {
                font-size: 1rem;
            }
            .author-bio {
                flex-direction: column;
                text-align: center;
            }
            .blog-detail-page {
                border-radius: 0;
                margin: 0;
            }        

        /* Animations */
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Responsive Overrides */
        @media (max-width: 768px) {
            .blog-list .blog-card {
                flex-direction: column;
                align-items: stretch;
                gap: 1rem;
                padding: 1rem;
            }
            .blog-list .blog-card-image {
                width: 100%;
                height: 180px;
                border-radius: 1rem 1rem 0 0;
            }
            .blog-card-body {
                background: hsl(var(--card));
                backdrop-filter: none;
                border: none;
                padding: 1rem;
                border-radius: 0 0 1rem 1rem;
            }
            .blog-card-title, .blog-card-category, .blog-card-meta, .blog-card-excerpt {
                color: hsl(var(--foreground));
            }
            .blog-controls {
                flex-direction: column;
                align-items: stretch;
            }
            .blog-page {
                border-radius: 0;
                margin: 0;
            }
            .blog-title {
                font-size: 2rem;
            }
            .blog-subtitle {
                font-size: 1rem;
            }
        }

/* Reusable Auth Card/Form Container */
.auth-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 3rem;
    margin: 2rem auto;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 10;
    max-width: 600px; /* Adjust max-width as needed */
    display: flex;
    flex-direction: column;
}        


/* additional */

/* Tech Blog Hero Section */
.tech-blog-hero {
    text-align: center;
    padding: 6rem 1rem 4rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    animation: fadeIn 1s ease-out;
}

.tech-blog-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 1rem;
    background: linear-gradient(to right, hsl(var(--accent)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-blog-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 2rem;
    max-width: 600px;
    line-height: 1.6;
}

/* Decorative background for blog hero */
.tech-blog-hero::before {
    content: "";
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 12rem;
    height: 12rem;
    background: hsl(var(--accent) / 0.15);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .tech-blog-hero-title {
        font-size: 2rem;
    }
    .tech-blog-hero-subtitle {
        font-size: 1rem;
    }
}


/* additional */        


/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px hsl(var(--accent) / 0.3);
    }
    50% {
        box-shadow: 0 0 30px hsl(var(--accent) / 0.6);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* Responsive Design */
@media (min-width: 768px) {
    .header-info {
        display: flex;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-description {
        font-size: 1.25rem;
    }
    
    .footer-content {
        flex-direction: row;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}



@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .feature-highlights {
        flex-direction: column;
        align-items: stretch;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

