/*
 * STYLE.CSS V4.2: Mobile-Only Section
 */

/* --- 1. SETUP: Fonts & Theme Variables --- */
/* ... (unchanged) ... */
:root {
    --bg-color: #e9e7e2;
    --font-color: #2d3436;
    --primary-color: #4a6984;
    --primary-hover: #3a5368;
    --card-bg: #ffffff;
    --border-color: #d1ccc5;
    --heading-font: 'Lora', serif;
    --body-font: 'Inter', sans-serif;
}
html[data-theme='dark'] {
    --bg-color: #2d3436;
    --font-color: #dfe6e9;
    --primary-color: #6a89a4;
    --primary-hover: #8aa4be;
    --card-bg: #3a4244;
    --border-color: #5a6467;
}

/* --- 2. GENERAL STYLES --- */
/* ... (unchanged) ... */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--font-color);
    line-height: 1.7;
    transition: background-color 0.4s, color 0.4s;
}
.container { max-width: 900px; margin: 0 auto; padding: 0 2rem; }
h1, h2, h3 { font-family: var(--heading-font); font-weight: 700; line-height: 1.3; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }
.btn {
    display: inline-block; background-color: var(--primary-color); color: #fff;
    padding: 0.75rem 1.5rem; border-radius: 5px; margin-top: 1rem;
    text-align: center; border: none; font-weight: 700; transition: background-color 0.2s ease;
}
.btn:hover { background-color: var(--primary-hover); color: #fff; }

/* --- 3. HEADER & NAVIGATION --- */
/* ... (unchanged) ... */
header {
    background-color: rgba(233, 231, 226, 0.7);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky; top: 0; z-index: 1000;
    backdrop-filter: blur(8px); transition: background-color 0.4s, border-color 0.4s;
}
html[data-theme='dark'] header { background-color: rgba(45, 52, 54, 0.7); }
nav.container { display: flex; justify-content: space-between; align-items: center; }
.logo { margin-right: 2rem; line-height: 0; }
.nav-logo { height: 48px; width: 48px; object-fit: contain; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--font-color); font-weight: 400; padding-bottom: 6px; border-bottom: 2px solid transparent; }
.nav-links a.active, .nav-links a:hover { border-bottom-color: var(--primary-color); }
.lang-switch { border: 1px solid var(--border-color); padding: 0.3rem 0.8rem !important; border-radius: 20px; transition: all 0.2s ease; }
.lang-switch:hover { background-color: var(--primary-color); border-color: var(--primary-color); color: #fff !important; }
#theme-toggle { background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--font-color); }

/* --- 4. PARALLAX HOMEPAGE STYLES --- */
.parallax-section {
    position: relative; height: 100vh; background-position: center;
    background-repeat: no-repeat; background-size: cover; background-attachment: fixed;
    display: flex; align-items: center; justify-content: center; color: white;
}
.parallax-section::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero-text { text-align: center; z-index: 1; }
.hero-text h1 { font-size: 4rem; color: #fff; }
.hero-text p { font-size: 1.5rem; font-family: var(--heading-font); font-style: italic; color: #fff; }
.content-section {
    padding: 6rem 0; background-color: var(--bg-color);
    position: relative; z-index: 2; text-align: center;
}
.content-section h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.content-section p { max-width: 700px; margin: 0 auto 2rem auto; font-size: 1.1rem; }

/* NEW: This hides the section by default (on desktop) */
.mobile-only-section {
    display: none;
}

/* --- (Rest of the CSS is unchanged until the media query) --- */
.project-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card {
    background-color: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 12px; overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block; color: var(--font-color); text-align: left;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07); }
html[data-theme='dark'] .card:hover { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }
.card-image { width: 100%; height: 150px; object-fit: cover; border-radius: 0; border-bottom: 1px solid var(--border-color); }
.card-content { padding: 1.5rem; }
.blog-post-full { padding: 3rem 0; text-align: left; }
.blog-post-full h1 { font-size: 3rem; margin-bottom: 0.5rem;}
.post-meta { font-size: 0.9rem; color: #666; margin-bottom: 2rem; font-style: italic; }
html[data-theme='dark'] .post-meta { color: #999; }
.blog-hero-image { max-width: 550px; width: 100%; margin-left: auto; margin-right: auto; margin-bottom: 2rem; border-radius: 12px; }
.blog-post-full p { margin-bottom: 1.5rem; }
.blog-post-full figure { margin: 2rem 0; text-align: center; }
.blog-post-full figure img { margin-left: auto; margin-right: auto; }
.blog-post-full figcaption { font-size: 0.9rem; text-align: center; color: #666; margin-top: 0.5rem; font-style: italic; }
html[data-theme='dark'] .blog-post-full figcaption { color: #999; }
.blog-post-full blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 4px solid var(--primary-color); font-style: italic; font-family: var(--heading-font); font-size: 1.2rem; }
.references-section { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); font-size: 0.9rem; opacity: 0.8; line-height: 1.5; }
.references-section h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.references-section ol, .references-section ul { padding-left: 1.5rem; }
.references-section li { margin-bottom: 0.75rem; }

/* --- 7. RESPONSIVE & HAMBURGER MENU --- */
.hamburger-menu { display: none; cursor: pointer; }
.hamburger-menu span {
    display: block; width: 25px; height: 3px; margin: 5px 0;
    background-color: var(--font-color); transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    
    .parallax-section { background-attachment: scroll; }

    /* NEW: This shows the section on mobile */
    .mobile-only-section {
        display: flex;
    }

    .nav-links {
        position: fixed; top: 0; right: 0; height: 100vh; width: 70%;
        background-color: var(--card-bg);
        flex-direction: column; align-items: center; justify-content: center;
        gap: 3rem; transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-links.active { transform: translateX(0); }
    .hamburger-menu { display: block; z-index: 1001; }
    .hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger-menu.active span:nth-child(2) { opacity: 0; }
    .hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
    
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { font-size: 1.2rem; }

    .blog-post-full { padding-top: 2rem; padding-bottom: 2rem; }
    .blog-post-full h1 { font-size: 2.2rem; line-height: 1.2; }
}

/* --- 8. FOOTER --- */
footer { text-align: center; padding: 3rem 0; margin-top: 2rem; border-top: 1px solid var(--border-color); font-size: 0.9rem; }

/* --- 9. SCROLL-TRIGGERED FADE-IN ANIMATION --- */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}