/* ==========================================
   PREMIUM WRITER'S PORTFOLIO STYLES
   Modern, Elegant, Responsive Design
   ========================================== */

/* ==========================================
   CSS VARIABLES & ROOT CONFIGURATION
   ========================================== */
:root {
    /* Premium Color Palette */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    
    /* Neutral Colors */
    --dark: #0f172a;
    --dark-gray: #1e293b;
    --medium-gray: #475569;
    --light-gray: #94a3b8;
    --lighter-gray: #e2e8f0;
    --lightest: #f8fafc;
    --white: #ffffff;
    
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-light: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-elegant: 'Cormorant Garamond', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Pattern Variables */
    --pattern-dot-size: 1%;
    --pattern-spacing: 50px;
    
    /* Logo Variables */
    --logo-size: 40px;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--dark);
    background: var(--lightest);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==========================================
   PREMIUM NAVIGATION
   ========================================== */
.premium-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.premium-nav.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem var(--spacing-md);
}

.logo-container {
    z-index: 1001;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.25rem;
    transition: all var(--transition-normal);
}

.logo-icon {
    font-size: 1.75rem;
    transition: transform var(--transition-normal);
}

.logo-icon.logo-image {
    width: var(--logo-size);
    height: var(--logo-size);
    object-fit: contain;
    border-radius: 8px;
    mix-blend-mode: multiply;
    filter: brightness(1.1) contrast(1.05);
    background: transparent;
}

.logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

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

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* ==========================================
   PREMIUM HERO SECTION
   ========================================== */
.premium-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(135deg, #fef5e7 0%, #e8f5f0 25%, #f0e8f5 50%, #fef0e8 75%, #e8f0f5 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 183, 197, 0.12) 0%, 
        rgba(255, 218, 193, 0.12) 25%,
        rgba(226, 240, 203, 0.12) 50%,
        rgba(181, 234, 215, 0.12) 75%,
        rgba(199, 206, 234, 0.12) 100%);
}

.animated-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 183, 197, 0.08), rgba(181, 234, 215, 0.08));
    filter: blur(60px);
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    top: -250px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -100px;
    animation-delay: 5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(30px, 30px) scale(1.05);
    }
}

@keyframes floatBubble {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -20px);
    }
    50% {
        transform: translate(-20px, 20px);
    }
    75% {
        transform: translate(20px, 20px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--spacing-xxl) 0;
    padding-bottom: calc(var(--spacing-xxl) + 80px);
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--dark);
}

.title-line {
    display: block;
    background: linear-gradient(135deg, 
        #FF6B9D 0%, 
        #C368F5 12.5%, 
        #6B8CFF 25%, 
        #47D6E8 37.5%, 
        #5FE6A0 50%, 
        #FFD93D 62.5%, 
        #FF9668 75%, 
        #FF6B9D 87.5%, 
        #C368F5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 400% 400%;
    animation: vibrantColorShift 8s ease-in-out infinite;
}

@keyframes vibrantColorShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 25%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 75%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-subtitle {
    font-family: var(--font-elegant);
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    color: var(--medium-gray);
    margin-bottom: var(--spacing-xl);
    font-style: italic;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.cta-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--medium-gray);
    font-size: 0.875rem;
    animation: fadeIn 2s ease 1s both;
    z-index: 10;
    pointer-events: none;
    margin-top: var(--spacing-xl);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(-45deg);
    }
    40% {
        transform: translateY(-10px) rotate(-45deg);
    }
    60% {
        transform: translateY(-5px) rotate(-45deg);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================
   SECTION HEADERS
   ========================================== */
main {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-family: var(--font-elegant);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--medium-gray);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   PREMIUM CATEGORY CARDS
   ========================================== */
.premium-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.premium-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

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

.premium-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.premium-card:hover .card-overlay {
    opacity: 1;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.premium-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary-color);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
}

.card-description {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
}

.card-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--lighter-gray);
    border-bottom: 1px solid var(--lighter-gray);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--lighter-gray);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.card-link:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-normal);
}

.card-link:hover .arrow-icon {
    transform: translateX(5px);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xxl);
    box-shadow: var(--shadow-sm);
    margin-top: var(--spacing-xxl);
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--medium-gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--lightest);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-item h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--spacing-xs);
}

.feature-item p {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

/* ==========================================
   PREMIUM FOOTER
   ========================================== */
.premium-footer {
    background: var(--gradient-dark);
    color: var(--lighter-gray);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.footer-description {
    color: var(--light-gray);
    line-height: 1.7;
}

.footer-subtitle {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-block;
}

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

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: var(--light-gray);
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ==========================================
   PAGE HEADER (For Subpages)
   ========================================== */
.page-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) var(--pattern-dot-size), transparent var(--pattern-dot-size));
    background-size: var(--pattern-spacing) var(--pattern-spacing);
    animation: headerPattern 20s linear infinite;
    opacity: 0.3;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-family: var(--font-elegant);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-style: italic;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* ==========================================
   OLD STYLES - Updated for Compatibility
   ========================================== */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) var(--pattern-dot-size), transparent var(--pattern-dot-size));
    background-size: var(--pattern-spacing) var(--pattern-spacing);
    animation: headerPattern 20s linear infinite;
    opacity: 0.3;
}

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

header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.3rem;
    font-style: italic;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Navigation Styles */
nav {
    background: linear-gradient(90deg, #2c3e50 0%, #3498db 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.4s, height 0.4s, top 0.4s, left 0.4s;
    transform: translate(-50%, -50%);
}

nav a:hover::before {
    width: 200px;
    height: 200px;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Category Cards */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.category-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.category-card h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.9rem;
    position: relative;
}

.category-card h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #667eea);
    margin: 10px auto 0;
    border-radius: 2px;
}

.category-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
}

.category-card a {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 35px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.category-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* List Styles */
.works-list {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.works-list h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
    font-size: 2rem;
}

.works-list ul {
    list-style: none;
}

.works-list li {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border-radius: 10px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.works-list li:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.works-list a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.works-list a:hover {
    color: #3498db;
}

/* Work Badge Styles */
.work-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-top: 10px;
    font-weight: 500;
}

/* Work Detail Styles */
.work-detail {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 45px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.work-detail h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.work-meta {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.work-content {
    line-height: 1.9;
    font-size: 1.1rem;
}

.work-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.work-content h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.novel-cover {
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #3498db;
}

.back-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateX(-5px);
}

/* Footer Styles (Old) */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    text-align: center;
    padding: 25px 0;
    margin-top: 60px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

footer p {
    opacity: 0.95;
    font-size: 1rem;
}

/* Loading and Error States */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner::before {
    content: '⏳';
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
    background: #fee;
    border-radius: 10px;
    margin: 20px 0;
}

.error-message button {
    margin-top: 15px;
    padding: 10px 25px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.error-message button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-slow);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    
    .premium-hero {
        min-height: 90vh;
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .scroll-indicator {
        bottom: var(--spacing-sm);
        font-size: 0.75rem;
        display: none;
    }
    
    .premium-categories {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .about-section {
        padding: var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1.1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    nav a {
        display: block;
        width: 200px;
    }

    .categories {
        grid-template-columns: 1fr;
    }

    .work-detail {
        padding: 25px;
    }
    
    .category-card {
        padding: 25px;
    }
    
    .back-to-top {
        bottom: var(--spacing-sm);
        right: var(--spacing-sm);
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem var(--spacing-sm);
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .premium-card {
        padding: var(--spacing-lg);
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
}

/* Accessibility and smooth transitions */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Print styles */
@media print {
    .premium-nav, .premium-footer, .back-to-top, .scroll-indicator, nav, header, footer, .back-link {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .premium-hero {
        min-height: auto;
        padding: 20px 0;
    }
    
    .work-detail, .works-list, .premium-card, .about-section {
        box-shadow: none;
        background: white;
        page-break-inside: avoid;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================
   SOCIAL INTERACTION COMPONENT
   ========================================== */
.social-interaction-bar {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--lightest);
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.social-interaction-bar:hover {
    box-shadow: var(--shadow-md);
}

.social-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--lighter-gray);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 500;
    font-size: 1rem;
    color: var(--dark);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    transition: width 0.4s, height 0.4s, top 0.4s, left 0.4s;
    transform: translate(-50%, -50%);
}

.social-action-btn:hover::before {
    width: 200px;
    height: 200px;
}

.social-action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.social-action-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.social-action-btn.active:hover {
    transform: translateY(-2px) scale(1.05);
}

.social-action-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-action-count {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Like button specific styling */
.social-action-btn.like-btn.active .social-action-icon {
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    60% { transform: scale(1); }
}

/* Share dropdown */
.share-dropdown {
    position: relative;
    display: inline-block;
}

.share-options {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-sm);
    margin-bottom: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
    z-index: 100;
}

.share-dropdown.active .share-options {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.share-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--dark);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.share-option:hover {
    background: var(--lightest);
    color: var(--primary-color);
}

.share-option svg {
    width: 18px;
    height: 18px;
}

/* Comments section */
.comments-section {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    box-shadow: var(--shadow-sm);
    display: none;
}

.comments-section.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.comments-header {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--lighter-gray);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.comment-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--lighter-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-normal);
    resize: vertical;
    min-height: 100px;
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.comment-submit-btn {
    align-self: flex-end;
    padding: 0.75rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.comment-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.comment-item {
    padding: var(--spacing-md);
    background: var(--lightest);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
    animation: fadeIn 0.3s ease;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--light-gray);
    margin-bottom: var(--spacing-sm);
}

.comment-text {
    color: var(--dark);
    line-height: 1.6;
}

.comments-empty {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--medium-gray);
    font-style: italic;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark);
    color: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    opacity: 0;
    transition: all var(--transition-normal);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    max-width: 90vw;
}

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

.toast-notification .toast-icon {
    font-size: 1.2rem;
}

/* Responsive adjustments for social interactions */
@media (max-width: 768px) {
    .social-interaction-bar {
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }
    
    .social-action-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .share-options {
        left: auto;
        right: 0;
        transform: none;
    }
    
    .share-dropdown.active .share-options {
        transform: none;
    }
}

@media (max-width: 480px) {
    .social-interaction-bar {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .social-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .comments-section {
        padding: var(--spacing-md);
    }
}

/* ========================================
   PHOTOGRAPHY CARD STYLING
   ======================================== */
.photography-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.photography-card .card-overlay {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.9) 0%, rgba(245, 87, 108, 0.9) 100%);
}

.photography-card:hover .card-overlay {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.95) 0%, rgba(245, 87, 108, 0.95) 100%);
}

/* ========================================
   ARTICLES CARD STYLING
   ======================================== */
.articles-card {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.articles-card .card-overlay {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.9) 0%, rgba(0, 242, 254, 0.9) 100%);
}

.articles-card:hover .card-overlay {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.95) 0%, rgba(0, 242, 254, 0.95) 100%);
}

.ebooks-card {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.ebooks-card .card-overlay {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.9) 0%, rgba(56, 239, 125, 0.9) 100%);
}

.ebooks-card:hover .card-overlay {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.95) 0%, rgba(56, 239, 125, 0.95) 100%);
}

/* ========================================
   RECENTLY POSTED CAROUSEL - ENHANCED DESIGN
   ======================================== */
.recently-posted-section {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 50%, #f5f8ff 100%);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.recently-posted-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBubble 15s ease-in-out infinite;
}

.recently-posted-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBubble 18s ease-in-out infinite reverse;
}

.recently-posted-section .section-title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.recently-posted-section .section-subtitle {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--medium-gray);
    position: relative;
    z-index: 1;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    overflow: hidden;
    z-index: 1;
}

.carousel-track {
    display: flex;
    gap: var(--spacing-xl);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: var(--spacing-lg) 0;
}

.carousel-item {
    flex: 0 0 calc(33.333% - var(--spacing-lg));
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    border: 2px solid transparent;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-xl);
}

.carousel-item:hover::before {
    opacity: 1;
}

.carousel-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-light);
}

.carousel-item-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.carousel-item-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.9) 50%, rgba(236, 72, 153, 0.9) 100%);
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.carousel-item-icon {
    width: 70px;
    height: 70px;
    color: var(--white);
    z-index: 1;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
    animation: iconFloat 3s ease-in-out infinite;
}

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

.carousel-item:hover .carousel-item-icon {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-15px) scale(1.1); }
    50% { transform: translateY(0) scale(0.95); }
    75% { transform: translateY(-8px) scale(1.05); }
}

.carousel-item-content {
    padding: var(--spacing-lg);
    position: relative;
}

.carousel-item-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5); }
}

.carousel-item-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.carousel-item:hover .carousel-item-title {
    color: var(--primary-color);
}

.carousel-item-description {
    color: var(--medium-gray);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.carousel-item-date {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--light-gray);
    font-size: 0.85rem;
    font-weight: 500;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--lighter-gray);
}

.carousel-item-date svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

/* Carousel Navigation Buttons - Enhanced */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.6);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.carousel-btn:hover svg {
    transform: translateX(3px);
}

.carousel-prev:hover svg {
    transform: translateX(-3px);
}

.carousel-prev {
    left: -8px;
}

.carousel-next {
    right: -8px;
}

/* Carousel Dots - Enhanced */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.carousel-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-dot:hover::before {
    border-color: rgba(99, 102, 241, 0.3);
}

.carousel-dot.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.carousel-dot.active::before {
    border-color: rgba(99, 102, 241, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(50% - var(--spacing-lg));
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0 var(--spacing-md);
    }
    
    .carousel-item {
        flex: 0 0 100%;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .carousel-item-image {
        height: 150px;
    }
    
    .carousel-item-icon {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .recently-posted-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .carousel-container {
        padding: 0 var(--spacing-sm);
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
}

/* Animation for carousel auto-play */
@keyframes slideAnimation {
    0%, 100% {
        transform: translateX(0);
    }
    33.33% {
        transform: translateX(-100%);
    }
    66.66% {
        transform: translateX(-200%);
    }
}

/* ==========================================
   NEW YEAR 2026 TEMPORARY FEATURES
   Auto-removes after January 3, 2026
   ========================================== */

/* New Year Trigger Button */
.new-year-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6B6B 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
    animation: newYearPulse 2s ease-in-out infinite;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
}

.new-year-trigger:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.6);
    animation: none;
}

.new-year-trigger:active {
    transform: translateY(-1px) scale(1.02);
}

@keyframes newYearPulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 24px rgba(255, 215, 0, 0.7);
        transform: scale(1.05);
    }
}

/* New Year Overlay */
.new-year-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.new-year-overlay.active {
    opacity: 1;
    visibility: visible;
}

.new-year-animation {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fireworks Animation */
.fireworks-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: fireworkExplosion 2s ease-out infinite;
}

.firework:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    background: radial-gradient(circle, #FFD700, transparent);
}

.firework:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 0.4s;
    background: radial-gradient(circle, #FF6B6B, transparent);
}

.firework:nth-child(3) {
    bottom: 30%;
    left: 30%;
    animation-delay: 0.8s;
    background: radial-gradient(circle, #4ECDC4, transparent);
}

.firework:nth-child(4) {
    top: 40%;
    right: 30%;
    animation-delay: 1.2s;
    background: radial-gradient(circle, #95E1D3, transparent);
}

.firework:nth-child(5) {
    bottom: 20%;
    right: 25%;
    animation-delay: 1.6s;
    background: radial-gradient(circle, #FFA500, transparent);
}

@keyframes fireworkExplosion {
    0% {
        transform: scale(0);
        opacity: 1;
        box-shadow: 
            0 0 0 0 currentColor,
            0 0 0 0 currentColor,
            0 0 0 0 currentColor,
            0 0 0 0 currentColor,
            0 0 0 0 currentColor,
            0 0 0 0 currentColor,
            0 0 0 0 currentColor,
            0 0 0 0 currentColor;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(50);
        opacity: 0;
        box-shadow: 
            0 -150px 0 0 currentColor,
            106px -106px 0 0 currentColor,
            150px 0 0 0 currentColor,
            106px 106px 0 0 currentColor,
            0 150px 0 0 currentColor,
            -106px 106px 0 0 currentColor,
            -150px 0 0 0 currentColor,
            -106px -106px 0 0 currentColor;
    }
}

/* Confetti Animation */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotateZ(720deg);
        opacity: 0;
    }
}

/* New Year Content */
.new-year-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--spacing-xl);
    animation: newYearContentFadeIn 1s ease-out;
}

@keyframes newYearContentFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.new-year-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 10vw, 6rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.new-year-line,
.new-year-year {
    display: block;
    background: linear-gradient(135deg, 
        #FFD700 0%, 
        #FFA500 12.5%, 
        #FF6B6B 25%, 
        #FF1493 37.5%, 
        #9370DB 50%, 
        #4169E1 62.5%, 
        #00CED1 75%, 
        #FFD700 87.5%, 
        #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 400% 400%;
    animation: newYearGradientShift 4s ease-in-out infinite;
}

.new-year-year {
    font-size: clamp(3rem, 12vw, 8rem);
    margin-top: var(--spacing-md);
    animation: newYearYearBounce 1s ease-out 0.5s both, newYearGradientShift 4s ease-in-out infinite;
}

@keyframes newYearGradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 25%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 75%;
    }
}

@keyframes newYearYearBounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.new-year-message {
    font-family: var(--font-elegant);
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--white);
    margin-bottom: var(--spacing-xl);
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: newYearMessageFadeIn 1s ease-out 1s both;
}

@keyframes newYearMessageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.new-year-close {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--dark);
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.5);
    animation: newYearButtonFadeIn 1s ease-out 1.5s both;
}

@keyframes newYearButtonFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.new-year-close:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.7);
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
}

.new-year-close:active {
    transform: translateY(-2px) scale(1.02);
}

/* Responsive adjustments for New Year features */
@media (max-width: 768px) {
    .new-year-trigger {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        margin-left: 0.5rem;
    }
    
    .new-year-content {
        padding: var(--spacing-md);
    }
    
    .new-year-close {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .new-year-trigger {
        position: fixed;
        bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom, 0px));
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
        z-index: 998;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .logo-container {
        position: relative;
    }
}

/* Hide New Year features after January 3, 2026 */
.new-year-expired .new-year-trigger,
.new-year-expired .new-year-overlay {
    display: none !important;
}


