:root {
    --color-1: #704E2E;
    --color-2: #79745C;
    --color-3: #BDC4AA;
    --color-4: #E6F8B2;
    --color-5: #709176;
    --text-dark: #333333;
    --bg-light: #fbfdf5;
}

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

body {
    font-family: 'Inter', sans-serif; 
    line-height: 1.6;
    background-color: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased; 
}

nav {
    background-color: rgba(112, 145, 118, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%; 
    z-index: 1000; 
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-menu {
    list-style: none; 
    display: flex; 
    justify-content: center; 
    padding: 15px 0;
    margin: 0; 
}

.nav-menu li {
    margin: 0 20px; 
}

.nav-menu a {
    color: white;
    text-decoration: none; 
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease; 
}

.nav-menu a:hover {
    color: var(--text-dark);
}

.page-wrapper {
    padding-top: 100px;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 40px;
    text-align: center;
}

.page-wrapper h1 {
    color: var(--color-5);
    margin-bottom: 20px;
    font-size: 2.5em;
}

main {
    text-align: center;
}

.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 140px 20px 40px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-image {
    width: 400px; 
    height: 400px;
    border-radius: 50%; 
    object-fit: cover; 
    border: 4px solid var(--color-5); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); 
    margin-bottom: 25px;

}

.hero h1 {
    font-size: 3em;
    color: var(--color-5);
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    color: var(--text-dark); 
}

.projects-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.projects-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: var(--color-5);
}

.project-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap; 
}

.project-card {
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 30px;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); 
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-5px); 
    border-color: var(--color-5);
    box-shadow: 0 12px 25px rgba(112, 145, 118, 0.2);
}

.project-card h3 {
    margin-bottom: 10px;
    color: var(--color-5);
}

.project-card p {
    font-size: 0.95em;
    color: var(--text-dark);
}

.skills-section {
    max-width: 800px;

    margin: 40px auto;
    text-align: center;
    padding-bottom: 40px;
}

.skills-section h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: var(--color-5);
}

.skills-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.skills-list span {
    background-color: var(--color-3);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

.contact-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid var(--color-2);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: left;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--color-5);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-5);
    box-shadow: 0 0 8px rgba(249, 140, 139, 0.4); 
}

.submit-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background-color: var(--color-5);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: var(--color-4);
    transform: translateY(-2px);
}

.contact-info h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 10px 20px;
    border: 2px solid var(--color-3);
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: var(--color-3);
    color: #fff;
    transform: translateY(-3px);
}

/* --- Animations --- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    animation: fadeInUp 0.8s ease-out forwards;
}

.projects-section {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.skills-section {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.page-wrapper {
    animation: fadeInUp 0.8s ease-out forwards;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
    animation: fadeInUp 0.8s ease-out forwards;
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-subtitle {
    font-size: 1.2em;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-card {
    background: #fff;
    border: 1px solid rgba(112, 145, 118, 0.15);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(112, 145, 118, 0.15);
}

.about-card h3 {
    color: var(--color-5);
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 3px solid var(--color-4);
    padding-bottom: 8px;
    display: inline-block;
}

.about-card p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.05em;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-1);
    margin-bottom: 12px;
}

.portfolio-intro {
    margin-bottom: 32px;
}

.portfolio-lead,
.project-lead {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 32px;
}

.project-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    text-align: left;
    padding: 24px 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f2f6e9 100%);
    border: 1px solid rgba(112, 145, 118, 0.2);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(112, 145, 118, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-button:hover {
    transform: translateY(-4px);
    border-color: var(--color-5);
    box-shadow: 0 18px 35px rgba(112, 145, 118, 0.14);
}

.project-button-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-button-title {
    color: var(--color-5);
    font-size: 1.35rem;
    font-weight: 700;
}

.project-button-summary {
    color: var(--text-dark);
    font-size: 0.98rem;
}

.project-button-meta,
.project-meta-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background-color: rgba(112, 145, 118, 0.12);
    color: var(--color-1);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.project-page-wrapper {
    max-width: 1100px;
}

.breadcrumb-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--color-1);
    font-weight: 700;
    text-decoration: none;
}

.breadcrumb-link:hover {
    color: var(--color-5);
}

.project-hero-card,
.detail-card {
    background: #ffffff;
    border: 1px solid rgba(112, 145, 118, 0.18);
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(112, 145, 118, 0.08);
}

.project-hero-card {
    padding: 36px;
    margin-bottom: 24px;
}

.project-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.project-action-row {
    margin-top: 26px;
}

.primary-link {
    display: inline-block;
    padding: 12px 20px;
    background-color: var(--color-5);
    color: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.primary-link:hover {
    background-color: var(--color-1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(112, 145, 118, 0.18);
}

.project-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.detail-card {
    padding: 28px;
    text-align: left;
}

.detail-card h2 {
    color: var(--color-5);
    margin-bottom: 14px;
}

.detail-card p + p {
    margin-top: 14px;
}

.detail-list {
    padding-left: 20px;
}

.detail-list li + li {
    margin-top: 10px;
}

.media-card {
    margin-bottom: 20px;
}

.media-card-header {
    margin-bottom: 18px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.gallery-slot {
    min-height: 210px;
    border-radius: 18px;
    border: 1px dashed rgba(112, 145, 118, 0.45);
    background:
        linear-gradient(135deg, rgba(189, 196, 170, 0.22), rgba(230, 248, 178, 0.45)),
        repeating-linear-gradient(
            135deg,
            rgba(112, 145, 118, 0.08),
            rgba(112, 145, 118, 0.08) 12px,
            rgba(255, 255, 255, 0.3) 12px,
            rgba(255, 255, 255, 0.3) 24px
        );
    display: flex;
    align-items: end;
    justify-content: start;
    padding: 18px;
    font-weight: 700;
    color: var(--color-1);
}

.demo-frame-shell {
    border-radius: 18px;
    overflow: hidden;
    border: 0px solid rgba(112, 145, 118, 0.18);
    background-color: #eef4e3;
}

.demo-frame {
    width: 100%;
    height: 650px;
    border: 0;
    display: block;
    overflow: hidden;
}

@media (max-width: 800px) {
    .project-button {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .project-hero-card,
    .detail-card {
        padding: 24px;
    }

    .demo-frame {
        height: 520px;
    }
}