/* Variables */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D6D3CE;
    --text-color: #3E2723;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Lora', serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --accent-color: #D2691E;
    --light-brown: hsl(34, 57%, 70%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

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

/* Typography */
h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--text-color);
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color:  #f9f9f9;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

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

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

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

/* Hero Section */
.hero {
    height: 100vh;
    background: 
        url('images/background.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Buttons */
.cta-button, .submit-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: none;
    font-family: var(--body-font);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.cta-button:hover, .submit-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px) translateZ(0);
    box-shadow: var(--shadow);
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--secondary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-text p {
    margin-bottom: 1rem;
}

/* Work Section */
.work {
    padding: 6rem 0;
    background-color: white;
}

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

.work-card {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.work-card:hover {
    transform: translateY(-5px);
}

.work-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Gallery Section */
.gallery {
    padding: 6rem 0;
    background-color: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Blog Section */
.blog {
    padding: 6rem 0;
    background-color: white;
}

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

.blog-card {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
}

.read-more:hover {
    color: var(--accent-color);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--secondary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-brown);
    border-radius: var(--border-radius);
    font-family: var(--body-font);
}

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

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

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: white;
        padding: 80px 1rem 1rem;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links li:nth-child(5) { transition-delay: 0.5s; }
    .nav-links li:nth-child(6) { transition-delay: 0.6s; }

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

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        height: 80vh;
    }
}

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

    h1 {
        font-size: 2.5rem;
    }

    .work-grid,
    .gallery-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Quote Box (matching screenshot aesthetic) */
.quote-box {
    background-color: #d6ccc2;
    border-left: 6px solid #8B4513;
    padding: 18px 24px;
    margin: 32px 0;
    font-style: italic;
    color: #3E2723;
    font-family: var(--body-font);
    font-size: 1.15rem;
    box-shadow: none;
}

/* Allow text selection in specific elements if needed */
.allow-select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Diary Theme for Homepage Diary Section */
.diary-theme-bg {
    background: #f6f3ee url('images/paper-texture.png') repeat;
}
.diary-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.diary-theme-card {
    position: relative;
    background: #fffbe9;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 1.5px 0 #e2d6c2 inset;
    padding: 48px 32px 40px 32px;
    border: 2px solid #e2d6c2;
    overflow: hidden;
    min-height: 320px;
}
.diary-title {
    font-family: 'Great Vibes', 'Indie Flower', cursive;
    font-size: 2.2rem;
    color: #8B4513;
    text-align: center;
    margin-bottom: 0.5rem;
}
.diary-doodle {
    position: absolute;
    right: 32px;
    top: 32px;
    width: 48px;
    opacity: 0.18;
    pointer-events: none;
}
.diary-lines {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
}
.diary-lines hr {
    border: none;
    border-top: 1px dashed #e2d6c2;
    margin: 0;
    height: 32px;
}
.diary-content {
    position: relative;
    z-index: 1;
}
.diary-theme-card h3.diary-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Great Vibes', 'Indie Flower', cursive;
    color: #8B4513;
    text-align: left;
}
.diary-theme-card p {
    font-family: 'Indie Flower', 'Karla', cursive;
    font-size: 1.1rem;
    color: #4d3a1a;
    line-height: 2.1;
    margin-bottom: 1.5rem;
}
@media (max-width: 900px) {
    .diary-theme-card {
        padding: 32px 16px 32px 16px;
    }
    .diary-doodle {
        right: 12px;
        top: 12px;
        width: 36px;
    }
}
@media (max-width: 600px) {
    .diary-theme-card {
        padding: 18px 4px 18px 4px;
    }
    .diary-title {
        font-size: 1.5rem;
    }
    .diary-theme-card h3.diary-title {
        font-size: 1.1rem;
    }
}

/* Ensure homepage diary section uses homepage fonts and button styles */
#diary .diary-title,
#diary .diary-theme-card h3.diary-title {
    font-family: var(--heading-font) !important;
    color: var(--text-color) !important;
}
#diary .diary-theme-card p {
    font-family: var(--body-font) !important;
    color: var(--text-color) !important;
}
#diary .cta-button {
    background-color: var(--primary-color) !important;
    color: white !important;
}
#diary .cta-button:hover {
    background-color: var(--accent-color) !important;
}

#diary .diary-theme-card {
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.3s;
}
#diary .diary-theme-card:hover {
    box-shadow: 0 12px 32px rgba(139,69,19,0.18), 0 2px 0 #e2d6c2 inset;
    transform: translateY(-6px) scale(1.02);
}

#diary .diary-pin {
    display: block;
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: radial-gradient(circle at 30% 30%, #e2d6c2 60%, #bfa77a 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(139,69,19,0.18), 0 1px 0 #bfa77a inset;
    border: 2px solid #d6c2a1;
    z-index: 2;
}
#diary .diary-theme-card {
    position: relative;
} 