/* Add this at the very top of your CSS file */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text&display=swap');

/* ===== Global Styles ===== */
:root {
    --gold: #d6bb90;
    --orange: #f9a867;
    --yellow: #f7ca4d;
    --dark-brown: #431a10;
    --light-bg: #f9f5f0;
    --white: #ffffff;
    --text-dark: #333333;
}

/* Ensure all elements use border-box sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'DM Serif Text', serif;
    margin: 0;
    padding: 0;
    background-color: #f4f1e6; /* Light background for contrast */
    color: #333; /* Dark text for readability */
}

h1 {
    font-size: 2.0rem; /* Adjust as needed for your design */
    line-height: 1.1;
    margin-bottom: 0.5em;
    color: var(--dark-brown);
}

.container, 
h1 {
    color: var(--dark-brown);
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Add some top padding for spacing */
}

section h1 {
    font-size: 2.0rem; /* Adjust as needed for your design */
}

/* ===== Header and Navigation ===== */
header {
    background: var(--dark-brown);
    color: var(--gold);
    padding: 20px 0;
    text-align: center;
}

.logo img {
    width: 150px; /* Adjust logo size */
    height: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav a.active {
    color: var(--orange);
}

nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s ease;
}

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

/* ==== Home Page ==== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gold);
    color: var(--dark-brown);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background: var(--orange);
    color: #fff;
}

.owner-section {
    display: flex;
    justify-content: center;
    padding: 60px 0;
    gap: 30px;
}

.owner-photo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.owner-photo {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.container .license-container {
    padding-bottom: 60px; /* Adjust this value to match or exceed your footer's height */
}

.license-section {
    padding: 40px 0;
    text-align: center;
    padding-bottom: 120px; /* Adjust this value to match or exceed your footer's height */
}

.license-section h2 {
    color: var(--dark-brown);
    margin-bottom: 16px;
}

.license-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
}

.license-list li {
    background: var(--light-bg);
    color: var(--dark-brown);
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.license-list li:hover {
    background: var(--gold);
    color: var(--dark-brown);
}

.h3 {
    color: var(--dark-brown);
    margin-bottom: 20px;
}

/* ===== Contact Page ===== */
.contact-header {
    padding: 60px 0 30px 0;
    background: #fff;
    text-align: center;
}

.contact-header h1 {
    color: var(--dark-brown);
    font-size: 2.2rem;
    margin-bottom: 0.5em;
}

.contact-header p {
    color: var(--orange);
    font-size: 1.25rem;
    margin-bottom: 1.25em;
}

.contact-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.socials {
    margin-bottom: 0;
}

.social-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.2s;
    margin-top: 1.25em;
}

.social-icon:hover {
    transform: scale(1.1) rotate(-5deg);
}

.contact-phone a {
    color: var(--dark-brown);
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    background: var(--gold);
    padding: 8px 20px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.contact-phone a:hover {
    background: var(--orange);
    color: #fff;
}

.contact-form-container {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 32px 24px;
    margin: 0 auto 40px auto;
    max-width: 500px;
}

.fs-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fs-label {
    font-weight: bold;
    color: var(--dark-brown);
    margin-bottom: 6px;
    display: block;
    text-align: left;
}

.fs-input,
.fs-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0d6c3;
    border-radius: 4px;
    font-size: 1rem;
    background: var(--light-bg);
    color: var(--text-dark);
    transition: border 0.2s;
}

.fs-input:focus,
.fs-textarea:focus {
    border-color: var(--orange);
    outline: none;
}

.fs-textarea {
    min-height: 100px;
    resize: vertical;
}

.fs-description {
    font-size: 0.95rem;
    color: #888;
    margin-top: 4px;
}

.fs-button-group {
    display: flex;
    justify-content: flex-end;
}

.fs-button {
    background: var(--gold);
    color: var(--dark-brown);
    border: none;
    border-radius: 4px;
    padding: 12px 28px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.fs-button:hover {
    background: var(--orange);
    color: #fff;
}

.contact-form {
    padding-bottom: 120px; /* Adjust this value to match or exceed your footer's height */
}

/* ===== Portfolio Page ===== */
.gallery-header {
    padding: 60px 0 30px 0;
    background: #fff;
    text-align: center;
}

.gallery-header h1 {
    color: var(--dark-brown);
    font-size: 2.2rem;
    margin-bottom: 0.5em;
}

.gallery-header p {
    color: var(--orange);
    font-size: 1.25rem;
    margin-bottom: 1.25em;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-gallery, .project-grid {
    padding-bottom: 60px; /* Adjust this value to match or exceed your footer's height */
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    color: var(--dark-brown);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.project-content p {
    color: #666;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.project-tag {
    background: var(--light-bg);
    color: var(--orange);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ===== Before and After Slider ===== */
.comparison-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-image {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.after-image {
    z-index: 1;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--white);
    z-index: 3;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.slider-handle:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.slider-handle:before {
    content: "↔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-weight: bold;
}

.before-label, .after-label {
    position: absolute;
    bottom: 20px;
    padding: 5px 15px;
    background: rgba(67, 26, 16, 0.8);
    color: var(--gold);
    border-radius: 4px;
    z-index: 4;
}

.before-label {
    left: 20px;
}

.after-label {
    right: 20px;
}

/* ===== Loading ===== */
.loading {
    text-align: center;
    padding: 60px 0;
    grid-column: 1 / -1;
}

.loading i {
    font-size: 3rem;
    color: var(--orange);
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    padding: 60px 0;
    grid-column: 1 / -1;
}

.error-message i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

/* ===== Footer ===== */
footer {
    background: var(--dark-brown);
    color: var(--gold);
    text-align: center;
    padding: 18px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

.creatorNote {
    font-size: 0.75rem;
    color: #888;
}

/* ==== 404 ==== */
.not-found {
    padding: 60px 0;
    text-align: center;
}

.not-found h1 {
    font-size: 3rem;
    color: var(--dark-brown, #431a10);
    margin-bottom: 20px;
}

.not-found p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.not-found .btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--gold, #d6bb90);
    color: var(--dark-brown, #431a10);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.2s;
}

.not-found .btn:hover {
    background: var(--orange, #f9a867);
    color: #fff;
}

@media (max-width: 600px) {
    footer {
        padding: 8px 0;
        font-size: 0.95rem;
    }
}

/*
Primary: #d6bb90 (light gold) and #f9a867 (orange)
Secondary: #f7ca4d (yellow) and #431a10 (dark brown)

- Backgrounds: Use #431a10 (dark brown) for headers, footers, and other dark areas.
- Text: Use #d6bb90 (light gold) for headings and light text on dark backgrounds.
- Accents/Buttons: Use #f9a867 (orange) for primary buttons and #f7ca4d (yellow) for hover states.
- Light backgrounds: Use #f4f4f4 (light gray) for content sections, but we can also consider off-whites that complement the gold.
*/