/* ===================================
   Advanced & Elegant Design - Fixed
   =================================== */

:root {
    --primary: #000000;
    --secondary: #4a4a4a;
    --tertiary: #8a8a8a;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --border-light: #e8e8e8;
    --border-medium: #d0d0d0;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --shadow-sm: rgba(0, 0, 0, 0.04);
    --shadow-md: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.12);
    --shadow-xl: rgba(0, 0, 0, 0.16);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    padding: 100px 0;
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 1px 0 var(--border-light);
    border-bottom-color: var(--border-light);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown .arrow {
    font-size: 10px;
    margin-left: 6px;
    opacity: 0.6;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    box-shadow: 0 20px 40px var(--shadow-lg);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */

.hero-elegant {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    z-index: -1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: center;
}

.hero-left {
    position: relative;
}

.profile-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 30px 60px var(--shadow-xl);
}

.frame-border {
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    z-index: 1;
}

.hero-right {
    max-width: 600px;
}

.hero-greeting {
    display: block;
    font-size: 16px;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.hero-name {
    font-size: 56px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stat-box {
    text-align: left;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 500;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--text-tertiary);
    margin: 12px auto 0;
    animation: scrollMove 2s infinite;
}

@keyframes scrollMove {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* ===================================
   Buttons
   =================================== */

.btn-elegant {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border-medium);
}

.btn-outline:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--bg-primary);
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px var(--shadow-md);
}

/* ===================================
   Section Elements
   =================================== */

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
}

.section-heading {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
}

.section-intro {
    text-align: center;
    margin-bottom: 60px;
}

.section-intro .section-subtitle {
    margin: 0 auto;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

/* ===================================
   About Section
   =================================== */

.about-elegant {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.text-content {
    margin: 30px 0;
}

.text-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.text-link:hover {
    gap: 12px;
}

.about-visual {
    display: grid;
    gap: 20px;
}

.experience-card {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--shadow-md);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.experience-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.experience-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===================================
   Domains - Clean Grid
   =================================== */

.domains-elegant {
    background: var(--bg-primary);
}

.domains-grid-clean {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.domain-card-clean {
    background: var(--bg-primary);
    padding: 40px 30px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.domain-card-clean:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px var(--shadow-lg);
    border-color: var(--primary);
}

.domain-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.domain-icon-clean {
    font-size: 48px;
}

.domain-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-tertiary);
}

.domain-card-clean h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.domain-card-clean > p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.domain-tech {
    list-style: none;
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.domain-tech li {
    padding: 4px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.domain-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.domain-link:hover {
    text-decoration: underline;
}

/* ===================================
   Projects - Equal Height Cards
   =================================== */

.projects-clean {
    background: var(--bg-secondary);
}

.projects-grid-equal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card-equal {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card-equal:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--shadow-lg);
    border-color: var(--primary);
}

.project-image-equal {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.project-image-equal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card-equal:hover .project-image-equal img {
    transform: scale(1.05);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.placeholder-icon {
    font-size: 72px;
    opacity: 0.3;
}

.project-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card-equal:hover .project-hover {
    opacity: 1;
}

.project-hover span {
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 16px;
}

.project-info-equal {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
}

.project-tag {
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-views {
    color: var(--text-tertiary);
}

.project-info-equal h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-info-equal p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.project-tags-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-pill {
    padding: 4px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===================================
   Blog - Equal Height Cards
   =================================== */

.blog-clean {
    background: var(--bg-primary);
}

.blog-grid-equal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card-equal {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card-equal:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--shadow-lg);
    border-color: var(--primary);
}

.blog-image-equal {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.blog-image-equal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card-equal:hover .blog-image-equal img {
    transform: scale(1.05);
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    position: relative;
}

.placeholder-content {
    text-align: center;
    position: relative;
}

.placeholder-icon-blog {
    font-size: 48px;
    opacity: 0.2;
    display: block;
    margin-bottom: 10px;
}

.placeholder-title {
    font-size: 64px;
    font-weight: 800;
    color: var(--border-medium);
    opacity: 0.3;
}

.blog-info-equal {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.blog-date {
    font-weight: 500;
}

.blog-cat {
    padding: 2px 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-weight: 600;
    color: var(--text-secondary);
}

.blog-info-equal h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-info-equal p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.read-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.blog-card-equal:hover .read-link {
    text-decoration: underline;
}

/* ===================================
   CTA
   =================================== */

.cta-elegant {
    background: var(--primary);
    color: var(--bg-primary);
}

.cta-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.cta-box p {
    font-size: 18px;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
}

/* ===================================
   Footer
   =================================== */
/* ===================================
   Advanced Footer
   =================================== */

.footer-advanced {
    background: var(--primary);
    color: var(--bg-primary);
    padding: 80px 0 0;
    position: relative;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Brand */
.footer-brand h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
    font-weight: 500;
}

.footer-bio {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 400px;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--bg-primary);
    color: var(--primary);
    transform: translateY(-3px);
    border-color: var(--bg-primary);
}

/* Footer Links Grid */
.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--bg-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--bg-primary);
    transform: translateX(4px);
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.made-with {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.heart {
    color: #ff4444;
    display: inline-block;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

/* ===================================
   Back to Top Button
   =================================== */

.back-to-top {
    position: fixed;
    bottom: 70px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--shadow-md);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-lg);
}

.back-to-top.show {
    display: flex;
}

/* ===================================
   Utility
   =================================== */

.empty-message {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-tertiary);
    font-size: 16px;
}




/* about page */
/* ===================================
   Page Hero
   =================================== */

.page-hero {
    padding: 160px 0 80px;
    background: var(--bg-secondary);
    text-align: center;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
}

.page-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   About Story Section
   =================================== */

.about-story {
    padding: 100px 0;
    background: var(--bg-primary);
}

.story-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
}

.story-image {
    position: relative;
}

.story-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-lg);
}

.story-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.story-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.story-highlights {
    display: grid;
    gap: 24px;
}

.highlight-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.highlight-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.highlight-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.highlight-text p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===================================
   Expertise Section
   =================================== */

.expertise-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.expertise-card {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.expertise-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--shadow-lg);
    border-color: var(--primary);
}

.expertise-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.expertise-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.expertise-card > p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.expertise-skills {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.expertise-skills li {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===================================
   Timeline Section
   =================================== */

.timeline-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--border-light);
}

.timeline-year {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.timeline-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ===================================
   Stats Section
   =================================== */

.stats-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item-large {
    text-align: center;
}

.stat-number-large {
    font-size: 56px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label-large {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===================================
   Values Section
   =================================== */

.values-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    padding: 40px 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px var(--shadow-md);
    border-color: var(--primary);
}

.value-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}



/* Work */
/* ===================================
   Filter Section
   =================================== */

.filter-section {
    padding: 60px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
}

.filter-wrapper {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.search-bar {
    flex: 1;
    max-width: 400px;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 1px solid var(--border-medium);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-primary);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--bg-primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--secondary);
}

.category-filter {
    display: flex;
    gap: 12px;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--bg-primary);
    border-color: var(--primary);
}

.results-info {
    text-align: center;
}

.results-info p {
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 500;
}

/* ===================================
   Projects Grid Section
   =================================== */

.projects-grid-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.work-grid-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-card-masonry {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.work-card-masonry:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow-lg);
    border-color: var(--primary);
}

.work-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.work-card-masonry:hover .work-card-image img {
    transform: scale(1.05);
}

.work-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.work-card-placeholder .placeholder-icon {
    font-size: 72px;
    opacity: 0.3;
}

.work-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.work-card-masonry:hover .work-card-overlay {
    opacity: 1;
}

.overlay-text {
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 16px;
}

.work-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.work-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 12px;
}

.work-category {
    padding: 5px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.work-views {
    color: var(--text-tertiary);
    font-weight: 500;
}

.work-card-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.work-card-content > p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.work-tag {
    padding: 5px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.work-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.view-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.work-card-masonry:hover .view-link {
    text-decoration: underline;
}

.work-date {
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 500;
}

/* ===================================
   Empty State
   =================================== */

.empty-state-large {
    text-align: center;
    padding: 120px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.empty-state-large h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.empty-state-large p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ===================================
   Responsive - Work Page
   =================================== */

@media (max-width: 1024px) {
    .work-grid-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    .category-filter {
        flex-wrap: wrap;
    }
    
    .work-grid-masonry {
        grid-template-columns: 1fr;
    }
}


/* project detail */
/* ===================================
   Project Detail Hero
   =================================== */

.project-hero {
    padding: 160px 0 60px;
    background: var(--bg-secondary);
}

.project-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.project-hero-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
}

.project-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.project-hero-desc {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.project-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.meta-label {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* ===================================
   Project Featured Image
   =================================== */

.project-featured-image {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.featured-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px var(--shadow-xl);
}

.featured-image-wrapper img {
    width: 100%;
    display: block;
}

/* ===================================
   Project Content Section
   =================================== */

.project-content-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.project-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.project-main-content {
    background: var(--bg-primary);
}

.content-html {
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.8;
}

.content-html h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin: 50px 0 20px;
    letter-spacing: -0.5px;
}

.content-html h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 40px 0 16px;
}

.content-html h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin: 30px 0 12px;
}

.content-html p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.content-html ul,
.content-html ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-html li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.content-html a {
    color: var(--primary);
    text-decoration: underline;
}

.content-html a:hover {
    text-decoration: none;
}

.content-html img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

.content-html blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.content-html code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.content-html pre {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
}

.content-html pre code {
    background: none;
    padding: 0;
}

/* Project Tags Section */
.project-tags-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

.project-tags-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.project-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tag-item {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.project-tag-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===================================
   Related Projects Section
   =================================== */

.related-projects-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-project-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.related-project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--shadow-lg);
    border-color: var(--primary);
}

.related-project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.related-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-project-card:hover .related-project-image img {
    transform: scale(1.05);
}

.related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    opacity: 0.3;
}

.related-project-info {
    padding: 24px;
}

.related-project-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.related-project-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   Blog Page Styles
   =================================== */

.blog-grid-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card-page {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card-page:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow-lg);
    border-color: var(--primary);
}

.blog-card-image-page {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.blog-card-image-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card-page:hover .blog-card-image-page img {
    transform: scale(1.05);
}

.blog-placeholder-page {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.blog-placeholder-page .placeholder-icon {
    font-size: 48px;
    opacity: 0.2;
    margin-bottom: 10px;
}

.blog-placeholder-page .placeholder-letter {
    font-size: 64px;
    font-weight: 800;
    color: var(--border-medium);
    opacity: 0.3;
}

.blog-card-info-page {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta-page {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
}

.blog-date-page {
    color: var(--text-tertiary);
    font-weight: 500;
}

.blog-category-badge {
    padding: 3px 10px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
}

.blog-card-info-page h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-card-info-page p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.blog-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.blog-card-page:hover .blog-read-more {
    text-decoration: underline;
}

/* ===================================
   Responsive - Project & Blog Pages
   =================================== */

@media (max-width: 1024px) {
    .related-projects-grid,
    .blog-grid-page {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-hero-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .project-hero {
        padding: 120px 0 40px;
    }
    
    .project-hero-title {
        font-size: 32px;
    }
    
    .project-hero-desc {
        font-size: 16px;
    }
    
    .project-hero-meta {
        flex-direction: column;
        gap: 20px;
    }
    
    .related-projects-grid,
    .blog-grid-page {
        grid-template-columns: 1fr;
    }
    
    .content-html h2 {
        font-size: 28px;
    }
    
    .content-html h3 {
        font-size: 22px;
    }
}

/* blog detail */
/* ===================================
   Blog Detail Hero
   =================================== */

.blog-detail-hero {
    padding: 160px 0 60px;
    background: var(--bg-secondary);
}

.blog-detail-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-detail-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
}

.blog-detail-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-bottom: 30px;
}

.blog-detail-meta {
    display: flex;
    justify-content: center;
}

.author-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.post-info {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: var(--text-tertiary);
}

.separator {
    opacity: 0.5;
}

/* ===================================
   Blog Featured Image
   =================================== */

.blog-featured-image {
    padding: 60px 0;
    background: var(--bg-secondary);
}

/* ===================================
   Blog Content Section
   =================================== */

.blog-content-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.blog-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.blog-article {
    margin-bottom: 60px;
}

.blog-excerpt {
    padding: 30px;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    margin-bottom: 40px;
}

.blog-excerpt p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

.blog-body {
    margin-bottom: 50px;
}

/* Blog Tags Section */
.blog-tags-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

.blog-tags-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.blog-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-tag-item {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.blog-tag-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===================================
   Share Section
   =================================== */

.blog-share-section {
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.blog-share-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-md);
}

.share-twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.share-facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

/* ===================================
   Related Blogs Section
   =================================== */

.related-blogs-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.related-blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-blog-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.related-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--shadow-lg);
    border-color: var(--primary);
}

.related-blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.related-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-blog-card:hover .related-blog-image img {
    transform: scale(1.05);
}

.related-blog-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.related-blog-placeholder span:first-child {
    font-size: 48px;
    opacity: 0.2;
    margin-bottom: 8px;
}

.related-blog-placeholder .placeholder-letter {
    font-size: 56px;
    font-weight: 800;
    color: var(--border-medium);
    opacity: 0.3;
}

.related-blog-info {
    padding: 24px;
}

.related-blog-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
}

.related-date {
    color: var(--text-tertiary);
    font-weight: 500;
}

.related-category {
    padding: 3px 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-weight: 600;
    color: var(--text-secondary);
}

.related-blog-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.related-blog-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* Contact */
/* ===================================
   Contact Section
   =================================== */

.contact-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
}

/* Contact Info */
.contact-info h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.contact-intro {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-methods {
    display: grid;
    gap: 24px;
    margin-bottom: 50px;
}

.contact-method {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateX(4px);
    border-color: var(--primary);
}

.method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 10px;
    color: var(--primary);
    flex-shrink: 0;
}

.method-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.method-content p,
.method-content a {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.method-content a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Contact Social */
.contact-social {
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

.contact-social h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.social-links-contact {
    display: flex;
    gap: 12px;
}

.social-link-contact {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link-contact:hover {
    background: var(--primary);
    color: var(--bg-primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ===================================
   Contact Form
   =================================== */

.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.contact-form {
    display: grid;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    padding: 14px 18px;
    border: 1px solid var(--border-medium);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 500;
}

.alert svg {
    flex-shrink: 0;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ===================================
   Literature Page Styles
   =================================== */

.literature-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.literature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.literature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.literature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow-lg);
    border-color: var(--primary);
}

.literature-cover {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.literature-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.literature-card:hover .literature-cover img {
    transform: scale(1.05);
}

.literature-placeholder-cover {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.literature-placeholder-cover .book-icon {
    font-size: 64px;
    opacity: 0.2;
    margin-bottom: 12px;
}

.literature-placeholder-cover .book-title-short {
    font-size: 24px;
    font-weight: 800;
    color: var(--border-medium);
    opacity: 0.4;
    text-align: center;
    padding: 0 20px;
}

.literature-type-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.literature-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.literature-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.literature-author {
    font-weight: 600;
    color: var(--text-secondary);
}

.literature-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
}

.literature-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.literature-info p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.literature-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.literature-card:hover .literature-read-more {
    text-decoration: underline;
}

/* ===================================
   Responsive Styles
   =================================== */

@media (max-width: 1200px) {
    .hero-wrapper {
        grid-template-columns: 350px 1fr;
        gap: 60px;
    }
    
    .story-grid {
        grid-template-columns: 350px 1fr;
        gap: 60px;
    }
}

@media (max-width: 1024px) {
    .page-title {
        font-size: 48px;
    }
    
    .hero-wrapper,
    .story-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .domains-grid-clean {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .expertise-grid,
    .stats-grid,
    .values-grid,
    .work-grid-masonry,
    .related-projects-grid,
    .blog-grid-page,
    .related-blogs-grid,
    .literature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .hero-name {
        font-size: 40px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .stat-divider {
        display: none;
    }
    
    .section-heading {
        font-size: 32px;
    }
    
    .domains-grid-clean,
    .expertise-grid,
    .stats-grid,
    .values-grid,
    .work-grid-masonry,
    .related-projects-grid,
    .blog-grid-page,
    .related-blogs-grid,
    .literature-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    .category-filter {
        flex-wrap: wrap;
    }
    
    .contact-form-wrapper {
        padding: 30px;
    }
    
    .blog-detail-title,
    .project-hero-title {
        font-size: 32px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .hero-name {
        font-size: 32px;
    }
    
    .section-heading {
        font-size: 28px;
    }
    
    .hero-buttons,
    .hero-cta,
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-elegant {
        width: 100%;
        justify-content: center;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .navbar,
    .hero-cta,
    .filter-section,
    .cta-elegant,
    .footer,
    .back-to-top,
    .share-buttons {
        display: none !important;
    }
    
    .page-hero,
    section {
        padding: 20px 0;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}


/* Literature detail */
/* ===================================
   Literature Detail Hero
   =================================== */

.literature-detail-hero {
    padding: 140px 0 80px;
    background: var(--bg-secondary);
}

.literature-hero-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: start;
}

/* Book Cover Section */
.book-cover-section {
    position: sticky;
    top: 120px;
}

.book-cover-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px var(--shadow-xl);
    background: var(--bg-tertiary);
}

.book-cover-image {
    width: 100%;
    display: block;
}

.book-cover-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.cover-icon {
    font-size: 80px;
    opacity: 0.2;
    margin-bottom: 20px;
}

.cover-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--border-medium);
    opacity: 0.3;
}

/* Book Info Section */
.book-info-section {
    max-width: 700px;
}

.book-type-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
}

.book-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

.book-author {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.book-rating-large {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    margin-bottom: 24px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 28px;
    line-height: 1;
}

.star.filled {
    color: #f59e0b;
}

.star.half {
    color: #f59e0b;
    opacity: 0.5;
}

.star.empty {
    color: var(--border-medium);
    opacity: 0.3;
}

.rating-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.book-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.meta-item-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-label-detail {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value-detail {
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
}

.book-excerpt-hero {
    padding: 24px;
    background: var(--bg-primary);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
}

.book-excerpt-hero p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

/* ===================================
   Literature Content Section
   =================================== */

.literature-content-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.literature-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.literature-article {
    margin-bottom: 60px;
}

.review-body {
    margin-bottom: 50px;
}

/* Key Takeaways Section */
.key-takeaways-section {
    margin-top: 50px;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.key-takeaways-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.takeaways-list {
    display: grid;
    gap: 16px;
}

.takeaway-item {
    display: flex;
    gap: 16px;
    align-items: start;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 10px;
}

.takeaway-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.takeaway-item p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Literature Tags Section */
.literature-tags-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

.literature-tags-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.literature-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.literature-tag-item {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.literature-tag-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===================================
   Literature Share Section
   =================================== */

.literature-share-section {
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.literature-share-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ===================================
   Related Literature Section
   =================================== */

.related-literature-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.related-literature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-literature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.related-literature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--shadow-lg);
    border-color: var(--primary);
}

.related-literature-cover {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.related-literature-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-literature-card:hover .related-literature-cover img {
    transform: scale(1.05);
}

.related-literature-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    opacity: 0.2;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.related-literature-info {
    padding: 24px;
}

.related-literature-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
}

.related-author {
    color: var(--text-secondary);
    font-weight: 600;
}

.related-rating {
    color: #f59e0b;
}

.related-literature-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.related-literature-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   CTA with Outline White Button
   =================================== */

.btn-outline-white {
    background: transparent;
    color: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--bg-primary);
}

/* ===================================
   Responsive - Literature Detail
   =================================== */

@media (max-width: 1024px) {
    .literature-hero-grid {
        grid-template-columns: 280px 1fr;
        gap: 40px;
    }
    
    .book-title {
        font-size: 36px;
    }
    
    .related-literature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .literature-detail-hero {
        padding: 120px 0 60px;
    }
    
    .literature-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .book-cover-section {
        position: relative;
        top: 0;
    }
    
    .book-cover-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .book-title {
        font-size: 28px;
        text-align: center;
    }
    
    .book-author {
        font-size: 16px;
        text-align: center;
    }
    
    .book-rating-large {
        justify-content: center;
    }
    
    .book-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .key-takeaways-section {
        padding: 30px 20px;
    }
    
    .related-literature-grid {
        grid-template-columns: 1fr;
    }
}





/* ===================================
   FIX: Navbar Overlap Prevention
   =================================== */

/* Add padding to body to prevent content being hidden by fixed navbar */
body {
    padding-top: 89px; /* Navbar height: 24px top padding + 36px logo + 24px bottom + 5px buffer = 89px */
}

/* Adjust for mobile */
@media (max-width: 900px) {
    body {
        padding-top: 65px; /* Mobile navbar height */
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 63px; /* Smaller mobile navbar */
    }
}

/* Ensure mobile menu is scrollable */
@media (max-width: 900px) {
    .nav-menu {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        max-height: calc(100vh - 66px);
    }
}

/* ===================================
   MOBILE MENU FIX - Complete
   =================================== */

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Ensure navbar is always on top */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Mobile menu should be full height and scrollable */
@media (max-width: 900px) {
    .nav-menu {
        /* Remove any max-height constraints */
        max-height: none !important;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    /* Ensure dropdown menus don't cause scroll issues */
    .dropdown-menu {
        max-height: none !important;
    }
    
    /* Make sure all menu items are visible */
    .nav-menu > *,
    .dropdown,
    .dropdown-menu {
        flex-shrink: 0;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 900px) {
        .nav-menu {
            height: calc(100vh - 66px);
            height: calc(var(--vh, 1vh) * 100 - 66px);
        }
        
        body.menu-open {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }
    }
}
