/* ==========================================
   CSS Reset & Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0A0E27;
    --secondary-color: #FFD700;
    --accent-color: #FF6B6B;
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-dark: #0A0E27;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

html {
    scroll-behavior: smooth;
}



body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   Custom Scrollbar
   ========================================== */
/* Webkit Browsers */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

/* Selection */
::selection {
    background: rgba(118, 75, 162, 0.2);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(118, 75, 162, 0.2);
    color: var(--text-primary);
}


/* ==========================================
   Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Noto Serif TC', serif;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* ==========================================
   Layout
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   Navigation
   ========================================== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: rgba(147, 51, 234, 0.15);
    z-index: 10000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .site-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}


.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    top: 40%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.particle:nth-child(3) {
    top: 60%;
    left: 30%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: 6s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 50%;
    animation-delay: 8s;
    animation-duration: 11s;
}

.particle:nth-child(6) {
    top: 30%;
    left: 15%;
    animation-delay: 1s;
    animation-duration: 12s;
}

.particle:nth-child(7) {
    top: 50%;
    left: 90%;
    animation-delay: 3s;
    animation-duration: 8s;
}

.particle:nth-child(8) {
    top: 70%;
    left: 60%;
    animation-delay: 5s;
    animation-duration: 10s;
}

.particle:nth-child(9) {
    top: 15%;
    left: 75%;
    animation-delay: 7s;
    animation-duration: 9s;
}

.particle:nth-child(10) {
    top: 85%;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 13s;
}

.particle:nth-child(11) {
    top: 45%;
    left: 40%;
    animation-delay: 9s;
    animation-duration: 7s;
}

.particle:nth-child(12) {
    top: 25%;
    left: 85%;
    animation-delay: 4s;
    animation-duration: 11s;
}

.particle:nth-child(13) {
    top: 65%;
    left: 5%;
    animation-delay: 6s;
    animation-duration: 8s;
}

.particle:nth-child(14) {
    top: 35%;
    left: 65%;
    animation-delay: 10s;
    animation-duration: 12s;
}

.particle:nth-child(15) {
    top: 90%;
    left: 45%;
    animation-delay: 1s;
    animation-duration: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(20px);
    }
    50% {
        transform: translateY(20px) translateX(-20px);
    }
    75% {
        transform: translateY(-10px) translateX(-10px);
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
}

/* 半透明背景圖片 */
.hero-bg-image {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 85vh;
    max-width: 95vw;
    object-fit: contain;
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
    z-index: -1;
}

/* 大螢幕使用更大的圖片 */
@media (min-width: 1200px) {
    .hero-bg-image {
        height: 88vh;
        max-width: 90vw;
    }
}

/* 超大螢幕 */
@media (min-width: 1600px) {
    .hero-bg-image {
        height: 90vh;
        max-width: 85vw;
    }
}

@media (max-width: 768px) {
    .hero-bg-image {
        height: 70vh;
        max-width: 100vw;
    }
}

.hero-logo {
    width: 90%;
    max-width: 600px;
    min-width: 300px;
    height: auto;
    margin: 0 auto 1rem auto;
    display: block;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 1s ease-out 3s forwards;
}

/* 大螢幕調整 */
@media (min-width: 1024px) {
    .hero-logo {
        width: 50%;
        max-width: 700px;
    }
}

/* 超大螢幕調整 */
@media (min-width: 1440px) {
    .hero-logo {
        width: 40%;
        max-width: 800px;
    }
}

/* 手機調整 */
@media (max-width: 768px) {
    .hero-logo {
        width: 85%;
        min-width: 250px;
    }
}

@keyframes fadeIn {
    to {
        opacity: 0.15;
    }
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    margin-bottom: 1.5rem;
    color: white;
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.title-word:nth-child(1) { animation-delay: 0.2s; }
.title-word:nth-child(2) { animation-delay: 0.4s; }
.title-word:nth-child(3) { animation-delay: 0.6s; }
.title-word:nth-child(4) { animation-delay: 0.8s; }
.title-word:nth-child(5) { animation-delay: 1s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards 1.2s;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 4s forwards;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: var(--gradient-gold);
    color: var(--primary-color);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #047857;
    border: 2px solid transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button.secondary:hover {
    background: white;
    color: #065f46;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.6);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 0; transform: translateY(-10px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(10px); }
}

/* ==========================================
   Main Content
   ========================================== */
.site-main {
    flex: 1;
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ==========================================
   Post Grid
   ========================================== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.post-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.post-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: var(--transition);
}

.post-card:hover .post-card-overlay {
    opacity: 1;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-tags {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.post-card-title {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.post-card-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ==========================================
   Categories Grid
   ========================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.category-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.category-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.category-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-bg img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 2;
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
    z-index: 3;
    text-align: center;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.category-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.category-stats {
    margin-bottom: 1rem;
}

.post-count {
    font-size: 0.9rem;
    opacity: 0.8;
}

.category-arrow {
    font-size: 1.5rem;
    transition: var(--transition);
}

.category-card:hover .category-arrow {
    transform: translateX(10px);
}

/* Slide-in animations */
.slide-in-left {
    opacity: 0 !important;
    transform: translateX(-150px) !important;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.slide-in-center {
    opacity: 0 !important;
    transform: translateY(150px) !important;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s, transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s !important;
}

.slide-in-right {
    opacity: 0 !important;
    transform: translateX(150px) !important;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s, transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s !important;
}

/* Active state when in viewport */
.slide-in-left.active {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.slide-in-center.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.slide-in-right.active {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Keyframes no longer needed as we're using transitions */

/* Latest Posts Section */
.latest-posts-section {
    margin-top: 3rem;
}

/* ==========================================
   Newsletter Section
   ========================================== */
.newsletter-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.newsletter-box {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.newsletter-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.newsletter-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsletter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.newsletter-content {
    position: relative;
    z-index: 3;
    padding: 3rem;
    text-align: center;
    color: white;
}

.newsletter-title {
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.newsletter-description {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.newsletter-form {
    position: relative;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

.newsletter-input::placeholder {
    color: var(--text-light);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    background: white;
}

.newsletter-button {
    padding: 1rem 2rem;
    background: var(--gradient-gold);
    color: var(--text-primary);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-shadow: none;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button-loading {
    display: none;
}

.newsletter-form.loading .button-text {
    display: none;
}

.newsletter-form.loading .button-loading {
    display: block;
}

.message-success,
.message-error {
    display: none;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.newsletter-form.success .message-success {
    display: block;
}

.newsletter-form.error .message-error {
    display: block;
}

/* ==========================================
   Koenig Editor Classes (Required by Ghost)
   ========================================== */
.kg-width-wide {
    width: 100vw;
    max-width: 1200px;
    margin: 2rem auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.kg-width-full {
    width: 100vw;
    max-width: none;
    margin: 2rem auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.kg-image {
    max-width: 100%;
    height: auto;
}

.kg-image-card {
    margin: 2rem 0;
}

.kg-image-card img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.kg-gallery-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kg-card {
    margin: 2rem 0;
}

.kg-embed-card {
    margin: 2rem 0;
}

.kg-bookmark-card {
    margin: 2rem 0;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.kg-bookmark-content {
    flex: 1;
    padding: 1.5rem;
}

.kg-bookmark-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.kg-bookmark-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.kg-bookmark-icon {
    width: 16px;
    height: 16px;
}

.kg-bookmark-thumbnail {
    width: 200px;
    height: 150px;
    object-fit: cover;
}

/* Ghost Font Settings */
.gh-font-heading {
    font-family: 'Playfair Display', serif;
}

.gh-font-body {
    font-family: 'Inter', sans-serif;
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-subtitle {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-description {
    color: #9CA3AF;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9CA3AF;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    color: #9CA3AF;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--secondary-color);
}

.footer-subscribe {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-subscribe p {
    color: #9CA3AF;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-subscribe-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gradient-gold);
    color: var(--primary-color);
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    max-width: 150px;
}

.footer-subscribe-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9CA3AF;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        gap: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .category-card {
        height: 300px;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .category-description {
        font-size: 0.9rem;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-content {
        padding: 2rem 1rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .hero-section {
        padding: 0 1rem;
    }
    
    .site-main {
        padding: 3rem 0;
    }
    
    .newsletter-box {
        margin: 0 1rem;
    }
}

/* ==========================================
   Updated Navigation Layout
   ========================================== */
.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

.nav-social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

/* Remove scroll hide behavior */
.site-nav {
    transform: translateY(0) !important;
}

/* ==========================================
   Floating Social Media Widget
   ========================================== */
.floating-buttons-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.floating-social-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-widget-toggle {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: default;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    margin-top: 0.75rem;
}

.social-widget-toggle:hover {
    transform: scale(1.1);
}

.social-widget-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.floating-social-widget:hover .social-widget-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Stagger animation for social links - bottom to top */
.floating-social-widget:hover .social-widget-link:nth-child(1) {
    transition-delay: 0.3s;
}

.floating-social-widget:hover .social-widget-link:nth-child(2) {
    transition-delay: 0.2s;
}

.floating-social-widget:hover .social-widget-link:nth-child(3) {
    transition-delay: 0.1s;
}

.floating-social-widget:hover .social-widget-link:nth-child(4) {
    transition-delay: 0s;
}

.social-widget-link {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease-out;
    opacity: 0;
    transform: translateY(20px);
}

.floating-social-widget:hover .social-widget-link {
    opacity: 1;
    transform: translateY(0);
}

.social-widget-link:hover {
    transform: translateX(-10px) scale(1.1);
}

.social-widget-link.facebook {
    color: #1877f2;
}

.social-widget-link.facebook:hover {
    background: #1877f2;
    color: white;
}

.social-widget-link.instagram {
    color: #E4405F;
}

.social-widget-link.instagram:hover {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.social-widget-link.threads {
    color: #000;
}

.social-widget-link.threads:hover {
    background: #000;
    color: white;
}

.social-widget-link.componnation {
    color: #667eea;
}

.social-widget-link.componnation:hover {
    background: #667eea;
    color: white;
}

.social-widget-link.componnation img {
    filter: none;
    transition: filter 0.3s ease;
}

.social-widget-link.componnation:hover img {
    filter: brightness(0) invert(1);
}

/* Mobile adjustments for navigation */
@media (max-width: 768px) {
    .nav-social {
        display: none;
    }
    
    .nav-left {
        flex: 1;
    }
    
    .floating-buttons-container {
        bottom: 20px;
        right: 20px;
    }
    
    .social-widget-toggle {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
    
    .social-widget-link {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    transform: scale(1.1);
    background: var(--gradient-secondary);
}
@media (max-width: 768px) {
    .scroll-to-top {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
}
/* ==========================================
   Combined Content Section with Particles
   ========================================== */
.content-wrapper-combined {
    position: relative;
    padding: 80px 0;
    background: #ffffff;
    overflow: hidden;
}

/* Inner content sections */
.content-categories-inner,
.latest-posts-inner {
    position: relative;
    z-index: 2;
}

.content-categories-inner {
    padding-bottom: 40px;
}

.latest-posts-inner {
    padding-top: 40px;
}

/* Animated Particles Container */
.content-wrapper-combined .animated-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Particle Styles */
.content-wrapper-combined .animated-particles .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 140, 0, 0.6);
    border-radius: 50%;
    animation: particle-float-up 20s infinite linear;
}

/* Particle Size Variations */
.content-wrapper-combined .animated-particles .particle.small {
    width: 4px;
    height: 4px;
    background: rgba(255, 165, 0, 0.5);
}

.content-wrapper-combined .animated-particles .particle.medium {
    width: 10px;
    height: 10px;
    background: rgba(255, 140, 0, 0.55);
}

.content-wrapper-combined .animated-particles .particle.large {
    width: 14px;
    height: 14px;
    background: rgba(255, 120, 0, 0.5);
}

/* Particle Positions and Animations */
.content-wrapper-combined .animated-particles .particle:nth-child(1) {
    left: 5%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.content-wrapper-combined .animated-particles .particle:nth-child(2) {
    left: 12%;
    animation-delay: 2s;
    animation-duration: 22s;
}

.content-wrapper-combined .animated-particles .particle:nth-child(3) {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 25s;
}

.content-wrapper-combined .animated-particles .particle:nth-child(4) {
    left: 28%;
    animation-delay: 4s;
    animation-duration: 20s;
}

.content-wrapper-combined .animated-particles .particle:nth-child(5) {
    left: 35%;
    animation-delay: 3s;
    animation-duration: 23s;
}

.content-wrapper-combined .animated-particles .particle:nth-child(6) {
    left: 42%;
    animation-delay: 5s;
    animation-duration: 19s;
}

.content-wrapper-combined .animated-particles .particle:nth-child(7) {
    left: 50%;
    animation-delay: 2s;
    animation-duration: 24s;
}

.content-wrapper-combined .animated-particles .particle:nth-child(8) {
    left: 58%;
    animation-delay: 6s;
    animation-duration: 21s;
}

.content-wrapper-combined .animated-particles .particle:nth-child(9) {
    left: 65%;
    animation-delay: 1s;
    animation-duration: 26s;
}

.content-wrapper-combined .animated-particles .particle:nth-child(10) {
    left: 72%;
    animation-delay: 4s;
    animation-duration: 20s;
}

.content-wrapper-combined .animated-particles .particle:nth-child(11) {
    left: 78%;
    animation-delay: 3s;
    animation-duration: 22s;
}

.content-wrapper-combined .animated-particles .particle:nth-child(12) {
    left: 85%;
    animation-delay: 5s;
    animation-duration: 18s;
}

.content-wrapper-combined .animated-particles .particle:nth-child(13) {
    left: 90%;
    animation-delay: 0s;
    animation-duration: 24s;
}

.content-wrapper-combined .animated-particles .particle:nth-child(14) {
    left: 95%;
    animation-delay: 2s;
    animation-duration: 21s;
}

.content-wrapper-combined .animated-particles .particle:nth-child(15) {
    left: 8%;
    animation-delay: 4s;
    animation-duration: 23s;
}

/* Floating Animation for Particles */
@keyframes particle-float-up {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        transform: translateY(90vh) translateX(10px) scale(1);
        opacity: 0.8;
    }
    20% {
        transform: translateY(80vh) translateX(-10px) scale(1.1);
        opacity: 1;
    }
    30% {
        transform: translateY(70vh) translateX(15px) scale(1);
    }
    40% {
        transform: translateY(60vh) translateX(-5px) scale(0.9);
    }
    50% {
        transform: translateY(50vh) translateX(10px) scale(1);
    }
    60% {
        transform: translateY(40vh) translateX(-15px) scale(1.1);
    }
    70% {
        transform: translateY(30vh) translateX(5px) scale(1);
    }
    80% {
        transform: translateY(20vh) translateX(-10px) scale(0.9);
        opacity: 1;
    }
    90% {
        transform: translateY(10vh) translateX(10px) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-10vh) translateX(0) scale(0);
        opacity: 0;
    }
}

/* Ensure content is above the particles */
.content-wrapper-combined > *:not(.animated-particles) {
    position: relative;
    z-index: 2;
}

/* Hover Animation for Cards */
.content-wrapper-combined:hover .category-card,
.content-wrapper-combined:hover .post-card {
    animation: bounce 0.6s ease-in-out;
    animation-delay: calc(var(--i) * 0.1s);
}

/* Add index variable to cards for staggered animation */
.category-card:nth-child(1) { --i: 0; }
.category-card:nth-child(2) { --i: 1; }
.category-card:nth-child(3) { --i: 2; }

.post-card:nth-child(1) { --i: 0; }
.post-card:nth-child(2) { --i: 1; }
.post-card:nth-child(3) { --i: 2; }
.post-card:nth-child(4) { --i: 3; }
.post-card:nth-child(5) { --i: 4; }
.post-card:nth-child(6) { --i: 5; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Enhanced hover effects for category cards */
.category-card {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Enhanced hover effects for post cards */
.post-card {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Ripple effect on click */
.category-card::after,
.post-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
}

.category-card:active::after,
.post-card:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

