:root {
    --primary-color: #ff8a00;
    --primary-hover: #ff7500;
    --secondary-color: #ffc400;
    --bg-light: #fffcf5;
    --text-main: #5c4a3d;
    --text-muted: #8b7355;
    --border-color: #ffe4c4;
    --white: #ffffff;
    --radius: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.6; color: var(--text-main); background-color: var(--bg-light); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar { background: var(--white); box-shadow: 0 4px 15px rgba(255,138,0,0.08); border-bottom: 2px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 1.8rem; font-weight: 900; color: var(--primary-color); display: flex; align-items: center; gap: 8px; letter-spacing: -0.5px; }
.logo::before { content: '🐣'; font-size: 2rem; animation: wiggle 2s infinite; }
.nav-links { display: flex; align-items: center; }
.nav-links a { background: var(--bg-light); border-radius: 20px; padding: 8px 18px; margin-left: 15px; font-weight: 700; color: var(--text-main); border: 2px solid transparent; transition: var(--transition); }
.nav-links a:hover { border-color: var(--primary-color); color: var(--primary-color); background: #fff5eb; transform: scale(1.05) rotate(-2deg); }

@keyframes wiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Buttons */
.btn { display: inline-block; padding: 15px 32px; border-radius: 40px; font-weight: 800; font-size: 1.1rem; text-align: center; transition: transform 0.1s, box-shadow 0.1s; position: relative; margin-bottom: 8px; }
.btn-primary { background: var(--primary-color); color: var(--white); border: 2px solid #e65c00; box-shadow: 0 6px 0 #e65c00; cursor: pointer; }
.btn-primary:active { transform: translateY(6px); box-shadow: 0 0 0 #e65c00; }

/* Hero */
.hero { padding: 100px 0; background: radial-gradient(circle at right top, #fff3e0 0%, #fffcf5 100%); overflow: hidden; position: relative; }
.hero::before { content: '✨'; position: absolute; top: 20%; left: 5%; font-size: 2rem; opacity: 0.5; animation: float 3s infinite; }
.hero::after { content: '✨'; position: absolute; bottom: 20%; right: 5%; font-size: 3rem; opacity: 0.3; animation: float 4s infinite 1s; }

.hero-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; z-index: 2; }
.hero-content { flex: 1; text-align: left; }
.hero-content h1 { font-size: 3.5rem; color: #d97706; font-weight: 900; line-height: 1.25; margin-bottom: 25px; text-shadow: 2px 2px 0px #ffe4c4; letter-spacing: -1px; }
.hero-content p { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 40px; font-weight: 600; max-width: 90%; line-height: 1.7; }

/* Dynamic Hero Graphics */
.hero-graphics { flex: 1; position: relative; height: 400px; display: flex; justify-content: center; align-items: center; }
.floating-card { position: absolute; background: var(--white); padding: 15px 25px; border-radius: 30px; box-shadow: 0 10px 25px rgba(255,138,0,0.15); font-weight: 800; color: var(--primary-color); display: flex; align-items: center; gap: 10px; border: 3px solid #ffe4c4; font-size: 1.3rem; z-index: 3; }
.floating-card span { font-size: 2.5rem; }

.card-1 { top: 10%; left: 5%; animation: float 4s ease-in-out infinite; }
.card-2 { top: 40%; right: 0; animation: float 5s ease-in-out infinite 1s; background: #fff5eb; transform-origin: center; }
.card-3 { bottom: 10%; left: 20%; animation: float 4.5s ease-in-out infinite 2s; background: #fffbeb; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Category Tabs */
.category-tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.category-tab { padding: 10px 24px; border-radius: 30px; background: var(--white); color: var(--text-main); font-weight: 800; border: 3px solid var(--border-color); cursor: pointer; transition: var(--transition); font-size: 1.1rem; }
.category-tab:hover { border-color: var(--primary-color); color: var(--primary-color); transform: translateY(-3px); }
.category-tab.active { background: var(--primary-color); color: var(--white); border-color: #e65c00; box-shadow: 0 4px 0 #e65c00; transform: translateY(-2px); }
.category-tab.active:hover { transform: translateY(-2px); }

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Articles Grid */
.articles { padding: 80px 20px; }
.articles h2 { font-size: 2.5rem; margin-bottom: 40px; text-align: center; color: #d97706; font-weight: 900; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 35px; }
.card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 3px solid var(--border-color); box-shadow: 0 8px 0 var(--border-color); transition: var(--transition); }
.card:hover { transform: translateY(-8px); box-shadow: 0 16px 0 var(--primary-color); border-color: var(--primary-color); }
.card-img { height: 220px; position: relative; display: flex; align-items: center; justify-content: center; font-size: 5rem; border-bottom: 3px solid var(--border-color); }
.card-content { padding: 25px; }
.card-content h3 { font-size: 1.35rem; margin-bottom: 12px; color: #d97706; font-weight: 800; }
.card-content p { color: var(--text-muted); font-size: 1rem; margin-bottom: 25px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; }
.read-more { color: var(--primary-color); font-weight: 800; display: inline-flex; align-items: center; gap: 5px; background: #fff5eb; padding: 8px 16px; border-radius: 20px; transition: var(--transition); }
.read-more::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; }
.card:hover .read-more { background: var(--primary-color); color: var(--white); transform: scale(1.05); }

/* Page Content */
.page-content { background: var(--white); padding: 50px; border-radius: var(--radius); margin: 40px auto; border: 3px solid var(--border-color); box-shadow: 0 8px 0 var(--border-color); }
.page-content h1 { color: var(--primary-color); margin-bottom: 30px; font-weight: 900; }
.page-content h2 { margin-top: 35px; margin-bottom: 15px; color: #d97706; font-weight: 800; }
.page-content p { margin-bottom: 18px; font-size: 1.1rem; font-weight: 500; }
.page-content ul { margin-left: 20px; margin-bottom: 20px; font-size: 1.1rem; font-weight: 500; }
.page-content a { color: var(--primary-color); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }
.page-content a:hover { color: var(--primary-hover); }

/* Footer */
.site-footer { background: #ffe4c4; color: #b48555; padding: 60px 0 30px; margin-top: 60px; border-top: 3px solid #f6d3a6; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-links a { color: #8b623b; font-weight: 700; padding: 12px 24px; background: rgba(255,255,255,0.5); border-radius: 30px; transition: var(--transition); border: 2px solid transparent; }
.footer-links a:hover { background: var(--white); color: var(--primary-color); border-color: var(--primary-color); transform: translateY(-3px); }
.footer-copy { text-align: center; border-top: 2px dashed #e8c7a2; padding-top: 30px; font-size: 1rem; font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; height: auto; padding: 15px 0; gap: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .hero { padding: 50px 0; }
    .hero-wrapper { flex-direction: column; text-align: center; gap: 20px; }
    .hero-content { text-align: center; }
    .hero-content p { max-width: 100%; margin: 0 auto 30px; }
    .hero-graphics { height: 350px; width: 100%; margin-top: 20px; }
    .card-1 { left: 5%; top: 5%; }
    .card-2 { right: 5%; top: 45%; }
    .card-3 { left: 15%; bottom: 5%; }
    .article-grid { grid-template-columns: 1fr; }
    .footer-links { flex-direction: column; gap: 10px; }
    .footer-links a { width: 100%; text-align: center; }
}
