/* ========================================
   BLOG STYLES
   ======================================== */

:root {
    --bg: #faf8f5;
    --bg-dark: #f5f2ed;
    --text: #1a1a1a;
    --text-light: #666;
    --text-muted: #999;
    --accent: #d4863c;
    --accent-hover: #c27835;
    --border: #e5e2dd;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(250, 248, 245, 0.95) 0%, rgba(250, 248, 245, 0.85) 35%, rgba(250, 248, 245, 0.4) 100%);
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
    width: 100%;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px, 6vw, 64px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-title .accent {
    color: var(--accent);
}

.hero-desc {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 420px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   SECTIONS
   ======================================== */
.projects-section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--text);
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s;
}

.view-all:hover {
    color: var(--accent);
    gap: 12px;
}

/* ========================================
   PROJECTS GRID
   ======================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
    display: block;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 24px;
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.project-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    background: var(--bg-dark);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    padding: 60px 0;
    background: var(--bg-dark);
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 700px;
}

.about-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8a35c, var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.about-avatar-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #e8a35c, var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.about-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.about-text p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.copyright {
    font-size: 13px;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    padding: 120px 0 40px;
    background: var(--bg-dark);
}

.page-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.page-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 500px;
}

/* ========================================
   PROJECTS PAGE
   ======================================== */
.projects-page {
    padding: 40px 0 80px;
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-page {
    padding: 40px 0 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.about-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.about-info {
    text-align: center;
}

.about-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
}

.about-role {
    font-size: 14px;
    color: var(--text-light);
}

.about-right {
    max-width: 600px;
}

.about-text p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.skills-section {
    margin-top: 32px;
}

.skills-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
}

.skill-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.skill-item i {
    font-size: 24px;
    color: var(--accent);
}

.skill-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-page {
    padding: 40px 0 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info-box h3,
.contact-form-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.contact-item:hover {
    border-color: var(--accent);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 18px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.contact-social {
    margin-top: 32px;
}

.contact-social h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 18px;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--accent);
    color: white;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: white;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   PROJECT DETAIL
   ======================================== */
.project-detail {
    padding: 100px 0 80px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 24px;
    transition: all 0.3s;
}

.back-link:hover {
    color: var(--accent);
    gap: 12px;
}

.project-header {
    margin-bottom: 32px;
}

.project-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.project-date {
    font-size: 14px;
    color: var(--text-muted);
}

.project-image-large {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
}

.project-image-large img {
    width: 100%;
    height: auto;
}

.project-content-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.project-main h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.project-main h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text);
}

.project-main p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-light);
}

.feature-list li i {
    color: var(--accent);
    font-size: 14px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-dark);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.tech-item i {
    color: var(--accent);
    font-size: 18px;
}

.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-box {
    padding: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.sidebar-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.sidebar-link:last-child {
    border-bottom: none;
}

.sidebar-link:hover {
    color: var(--accent);
}

.sidebar-link i {
    font-size: 18px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
}

.info-value {
    font-weight: 500;
    color: var(--text);
}

.status-completed {
    color: #22c55e;
}

.status-ongoing {
    color: var(--accent);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .project-content-detail {
        grid-template-columns: 1fr;
    }

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

    .about-left {
        flex-direction: row;
        justify-content: flex-start;
    }

    .about-info {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        transition: transform 0.3s;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

    .hero-overlay {
        background: linear-gradient(to bottom, rgba(250, 248, 245, 0.95) 0%, rgba(250, 248, 245, 0.9) 50%, rgba(250, 248, 245, 0.7) 100%);
    }

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

    .section-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .hero-content {
        padding: 40px 16px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-section {
        grid-template-columns: 1fr 1fr;
    }
}
