/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --primary-color: #8B6F47;
    --secondary-color: #A67C52;
    --text-color: #3D3429;
    --text-light: #6B5B4A;
    --bg-color: #FAF8F5;
    --bg-light: #F5F3F0;
    --bg-white: #FFFFFF;
    --border-color: #E8E0D6;
    --shadow: 0 2px 8px rgba(139, 111, 71, 0.08);
    --shadow-hover: 0 4px 12px rgba(139, 111, 71, 0.12);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   Navigation Bar (Top-Right)
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    flex: 1;
    margin-top: 80px;
    padding-bottom: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   Home Page - Hero Section
   ======================================== */
.hero-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--bg-light);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #7A5F3F;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* ========================================
   Intro Section (Home Page)
   ======================================== */
.intro-section {
    padding: 4rem 2rem;
}

.intro-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 6px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.card-link:hover {
    color: #7A5F3F;
}

/* ========================================
   Page Titles
   ======================================== */
.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
}

/* ========================================
   About Page
   ======================================== */
.about-section {
    padding: 4rem 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.about-image-wrapper {
    text-align: center;
}

.about-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow);
    border: 3px solid var(--border-color);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-section-block h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-section-block p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ========================================
   Projects Page
   ======================================== */
.projects-section {
    padding: 4rem 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}


.project-card {
    background: var(--bg-white);
    border-radius: 6px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background-color: var(--bg-light);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.project-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.project-link:hover {
    color: #7A5F3F;
}

/* ========================================
   Blog Page
   ======================================== */
.blog-section {
    padding: 4rem 2rem;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.blog-post {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 6px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-post:hover {
    box-shadow: var(--shadow-hover);
}

.blog-post-header {
    margin-bottom: 1rem;
}

.blog-post-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.blog-post-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-post-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.blog-post-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.blog-post-link:hover {
    color: #7A5F3F;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-section {
    padding: 4rem 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    color: var(--text-light);
}

.contact-method strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-method a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-method a:hover {
    color: #7A5F3F;
}

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

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

.form-group label {
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

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

/* ========================================
   Footer (Bottom-Right)
   ======================================== */
.footer {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 1.5rem 2rem;
    z-index: 1000;
}

.footer-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-icon {
    color: var(--text-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-icon svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 968px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image-wrapper {
        margin: 0 auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: var(--transition);
        gap: 1rem;
        align-items: flex-start;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    .nav-container {
        padding: 0 1rem;
    }

    .main-content {
        margin-top: 70px;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .intro-section {
        padding: 2rem 1rem;
    }

    .intro-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .about-section {
        padding: 2rem 1rem;
    }

    .about-section-block h2 {
        font-size: 1.5rem;
    }

    .projects-section {
        padding: 2rem 1rem;
    }

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

    .blog-section {
        padding: 2rem 1rem;
    }

    .blog-post-title {
        font-size: 1.5rem;
    }

    .contact-section {
        padding: 2rem 1rem;
    }

    .contact-info h2 {
        font-size: 1.5rem;
    }

    .footer {
        position: relative;
        bottom: auto;
        right: auto;
        text-align: center;
        padding: 2rem 1rem;
        background-color: var(--bg-light);
        margin-top: 2rem;
    }

    .footer-icons {
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .about-image {
        max-width: 250px;
        height: 250px;
    }

    .project-links {
        flex-direction: column;
        gap: 1rem;
    }
}
