@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --white: #FFFFFF;
    --beige: #F4EFE6;
    --text-primary: #1A1A1A;
    --text-grey: #666666;
    --accent-gold: #C4A750;
    --border-color: #EAEAEA;
    --font: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--white);
    color: var(--text-primary);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

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

/* Main Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
}

/* Left Side */
.header-left {
    flex: 1;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-primary);
    text-decoration: none;
}

/* Center Navigation */
.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-transform: capitalize;
    text-decoration: none;
    transition: all 0.2s ease;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}
.nav-link:hover {
    border-bottom-color: #E0E0E0;
}

/* Right Side */
.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}
.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--beige);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}
.mobile-menu-overlay nav {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
}
.mobile-menu-overlay .nav-link {
    font-size: 1.5rem;
    font-weight: 500;
    border-bottom: none;
}
.mobile-menu-overlay .lang-switcher {
    margin-top: 3rem;
    gap: 1.5rem;
}

.lang-switcher {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.lang-active {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: default;
}

.lang-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-grey);
    text-decoration: none;
    transition: color 0.2s;
}
.lang-link:hover {
    color: var(--text-primary);
}

/* Dividers */
hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2.5rem 0;
}

/* Banner */
.banner {
    background-color: var(--beige);
    border-radius: 4px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.banner-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.banner-content p {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Projects Grid */
.projects-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.card {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    text-align: center;
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--text-grey);
    margin-bottom: 1.25rem;
    text-align: center;
}

.card-image {
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Placeholder box for screenshots */
.card-inner {
    background: #EAEAEA;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    border: 1px solid #DDDDDD;
}

.card-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--beige);
    color: var(--text-primary);
    border: 1px solid var(--accent-gold);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card-image:hover .card-btn {
    background: var(--accent-gold);
    color: var(--white);
}

/* Buttons */
.btn-solid {
    background-color: #000000;
    color: var(--white);
    border: none;
    padding: 0.8rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
}
.btn-solid:hover {
    background-color: var(--text-grey);
}

/* Contact Form Container */
.contact-section {
    max-width: 500px;
    margin: 5rem auto;
}
.contact-section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-grey);
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
    appearance: none;
}

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

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

@media (max-width: 800px) {
    .main-header {
        padding: 1.5rem 0;
    }
    .header-center {
        display: none; /* Hide desktop menu */
    }
    .header-right {
        display: none; /* Hide desktop lang switcher */
    }
    .mobile-menu-btn {
        display: flex;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    .banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Blog Post Layout (James Clear Style) */
.post-container {
    display: flex;
    gap: 5rem;
    margin: 4rem auto 8rem auto;
    max-width: 1100px;
}
.post-left {
    flex: 3;
    max-width: 750px;
}
.post-right {
    flex: 1;
    min-width: 250px;
}
.post-header {
    margin-bottom: 3rem;
}
.post-category {
    font-size: 0.9rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.post-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
}
.post-content {
    font-size: 1.15rem;
    color: var(--text-grey);
    line-height: 1.8;
}
.post-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.post-content p {
    margin-bottom: 1.5rem;
}
.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
}
.post-content li {
    margin-bottom: 0.5rem;
}

/* Newsletter CTA */
.post-newsletter {
    margin-top: 5rem;
    padding: 3rem;
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
}
.post-newsletter p {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}
.newsletter-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}
.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* Sidebar Read Next */
.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.read-next-list {
    list-style: none;
    padding: 0;
}
.read-next-list li {
    margin-bottom: 1.5rem;
}
.read-next-list a {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}
.read-next-list a:hover {
    color: var(--accent-gold);
}

@media (max-width: 900px) {
    .post-container {
        flex-direction: column;
        gap: 3rem;
    }
    .post-right {
        border-top: 1px solid var(--border-color);
        padding-top: 3rem;
    }
    .post-title {
        font-size: 2.2rem;
    }
    .newsletter-form {
        flex-direction: column;
    }
}

/* Blog Overview Page (List Layout) */
.all-articles {
    padding: 6rem 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.all-articles__title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.all-articles__subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-grey);
    margin-bottom: 5rem;
}
.all-articles__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.all-articles__category h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}
.all-articles__category ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}
.all-articles__category li {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
}
.all-articles__category a.article-link {
    font-size: 1.15rem;
    color: var(--text-grey);
    text-decoration: none;
    line-height: 1.6;
    display: block;
    transition: color 0.2s;
}
.all-articles__category a.article-link:hover {
    color: var(--text-primary);
}
.all-articles__go {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}
.all-articles__go:hover {
    color: var(--accent-gold);
}
.all-articles__go svg {
    margin-left: 0.8rem;
    transition: transform 0.2s;
}
.all-articles__go:hover svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .all-articles__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Dedicated Newsletter Page */
.newsletter-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1200px;
    margin: 6rem auto 10rem auto;
    padding: 0 1.5rem;
    align-items: center;
}
.newsletter-page__text h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}
.newsletter-page__quote {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-grey);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}
.newsletter-page__desc {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 2rem;
}
.newsletter-page__card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    padding: 4rem;
    border-radius: 16px;
    text-align: center;
}
.newsletter-page__card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}
.newsletter-page__form input[type="email"] {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    background: #FAFAFA;
}
.newsletter-page__form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: #FFF;
}
.newsletter-page__form button {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--accent-gold);
    color: #FFF;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: transform 0.2s, opacity 0.2s;
    margin-bottom: 2.5rem;
}
.newsletter-page__form button:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}
.newsletter-page__footer {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--text-grey);
}

@media (max-width: 900px) {
    .newsletter-page {
        grid-template-columns: 1fr;
        gap: 4rem;
        margin-top: 3rem;
    }
    .newsletter-page__card {
        padding: 2.5rem;
    }
}
