@font-face {
    font-family: 'Noto Sans';
    src: url('fonts/NotoSans-Regular.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('fonts/NotoSans-Light.ttf') format('truetype');
    font-weight: 300; /* Light weight */
}

@font-face {
    font-family: 'Noto Sans';
    src: url('fonts/NotoSans-Bold.ttf') format('truetype');
    font-weight: bold;
}

:root {
    /* Base colors from Gruvbox palette */
    --bg: #282828;           /* bg */
    --bg0: #282828;         /* bg0 */
    --bg1: #3c3836;         /* bg1 */
    --bg2: #504945;         /* bg2 */
    --fg: #ebdbb2;          /* fg1 */
    --red: #cc241d;         /* red */
    --green: #98971a;       /* green */
    --yellow: #d79921;      /* yellow */
    --blue: #458588;        /* blue */
    --purple: #b16286;      /* purple */
    --aqua: #689d6a;        /* aqua */
    --gray: #a89984;        /* gray */
    
    /* Semantic color assignments */
    --background-color: var(--bg);
    --primary-color: var(--bg1);
    --secondary-color: var(--bg2);
    --accent-color: var(--red);
    --text-color: var(--fg);
    --text-muted: var(--gray);
    --highlight: var(--green);
    --link-hover: var(--gray);
    --button-hover: var(--aqua);
    --border-accent: var(--purple);
}

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

body {
    font-family: 'Noto Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(91vh - 91px);
}

/* Navigation */
.nav-container {
    background-color: var(--primary-color);
    padding: 1rem 0;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

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

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero .pixel-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero .pixel-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-image: url('images/border_overlay.png');
    background-size: cover;
    background-position: center;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.hero h1, .hero .titles {
    position: relative;
    z-index: 3;
    text-shadow: 2px 2px 4px var(--bg2);
}

.titles {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}

/* Base pixel frame container */
.pixel-frame {
    position: relative;
    padding: 0;
    border-radius: 8px;
    overflow: hidden; /* Ensure content doesn't overflow */
    line-height: 0; /* Remove extra space below the image */
}

/* Single border overlay effect using pseudo-element */
.pixel-frame::after {
    content: '';
    position: absolute;
    inset: 0; /* Cover the entire pixel frame */
    border-radius: 8px;
    pointer-events: none;
    transition: border-color 0.2s ease; /* Smooth transition */
    border: 3px solid transparent; /* Default to transparent */
}

/* Base image styles */
.pixel-frame img {
    display: block; /* Remove extra space below the image */
    width: 100%; /* Make image fill the width of the frame */
    height: auto;
    object-fit: cover; /* Maintain aspect ratio */
}

/* Preview items with golden ratio */
.preview-item .pixel-frame {
    width: 100%;
    aspect-ratio: 1.618;
}

/* Main showcase image with golden ratio */
.showcase-main-image {
    width: 100%;
    aspect-ratio: 1.618;
}

/* Set aspect ratio for preview image's pixel frame*/
.about-preview .pixel-frame {
    width: 100%; /* Make image responsive */
    max-width: 250px; /* Smaller image size */
    aspect-ratio: 1/1.2;
}

/* Preview image */
.preview-image {
    filter: grayscale(100%); /* Make image black and white */
}

/* Hover effects for preview and showcase images */
.preview-item .pixel-frame:hover::after,
.showcase-images .pixel-frame:hover::after {
    border-color: var(--accent-color); /* Show red border on hover */
}

/* Permanent red border for about and order images */
.about-section .pixel-frame::after,
.order-section .pixel-frame::after {
    border-color: var(--accent-color); /* Always show red border */
}

/* Remove these conflicting styles
.preview-item .pixel-frame:hover,
.showcase-images .pixel-frame:hover,
.about-section .pixel-frame:hover,
.order-section .pixel-frame:hover {
    border: none;
} */

/* Buttons */
.pixel-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: transparent; /* Transparent background */
    color: var(--text-color);
    text-decoration: none;
    margin: 1rem 0;
    border: 3px solid var(--accent-color); /* Accent color border */
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.pixel-button:hover {
    background-color: rgba(235, 219, 178, 0.2); /* Transparent foreground fill on hover */
    border-color: var(--fg); /* Foreground border color on hover */
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.gallery-item {
    text-align: center;
}

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* About preview section */
.about-preview {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
}

.about-content-preview {
    flex: 1;
    text-align: left;
}

.about-preview .pixel-frame {
    max-width: 250px;
    /* Removed aspect-ratio:  Let the image determine the aspect ratio */
}

.about-preview .pixel-frame img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure the entire image is visible */
}

/* Order Section */
.order-section {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Two columns: text and image */
    gap: 2rem; /* Space between columns */
}

.order-info {
    text-align: left; /* Left-align the text */
}

.order-image {
    display: flex;
    justify-content: center; /* Center the image */
    align-items: center; /* Center the image vertically */
}

.order-image-img {
    max-width: 100%; /* Ensure the image is responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Optional: Rounded corners */
}

.order-process {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.contact-info {
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--bg1); /* Optional: Background color */
    border: 1px solid var(--fg); /* Optional: Border for emphasis */
    border-radius: 4px; /* Optional: Rounded corners */
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .about-section {
        grid-template-columns: 1fr;
    }

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

/* Update showcase layout */
.showcase-item {
    display: flex;
    border: 1px solid var(--fg);
    padding: 1rem;
    margin-bottom: 2rem;
    background-color: #f5f5dc3c;
    border-radius: 8px;
}

.showcase-images {
    flex: 1;
}

/* Ensure consistent styling for showcase info block */
.showcase-info {
    flex: 0.6; /* Reduced width by adjusting flex value */
    padding: 1rem;
    padding-left: 2rem; /* Ensure left padding for alignment */
    background-color: var(--bg1);
    border: 2px solid var(--bg0);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-left: 1.5rem; /* Maintain left margin for spacing */
    text-align: left; /* Ensure text is left-aligned */
}

.showcase-info ul {
    margin-top: 0.5rem; /* Add margin above the list */
    padding-left: 1rem; /* Increase padding to move the list to the right */
}

.showcase-previews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

/* Update preview section on homepage */
.preview-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.preview-item h3 {
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--fg);
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.4rem;
    z-index: 3;
}
h3 {
    font-weight: 300; /* Light font weight */
}

.preview-item img {
    width: 100%;
    height: 100%; /* Fill the entire container */
    object-fit: cover; /* Maintain aspect ratio while covering area */
    display: block; /* Remove extra space below the image */
}

/* Update specific color uses */
.pixel-button {
    color: var(--text-color);
}

.contact-info {
    background-color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
}

/* Add subtle color transitions */
.nav-links a,
.pixel-button,
.preview-item img {
    transition: all 0.3s ease;
}

/* Add colored shadows for depth */
.hero h1, 
.hero .titles {
    text-shadow: 2px 2px 4px var(--bg2);
}

/* Update title font size */
.hero h1 {
    font-family: 'Noto Sans', sans-serif;
    font-weight: normal;
    font-size: 4rem;
    margin: 2rem 0;
    letter-spacing: 0.1em;
}

.preview-section {
    margin-top: 2rem; /* Adjust this value as needed */
}

.about-preview h2,
.preview-section h2 {
    margin-bottom: 1rem; /* Add some space below the headings */
}

.preview-section {
    text-align: center; /* Center the entire preview section */
}

.about-link {
    color: var(--accent-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

.divider {
    border: none;
    height: 2px;
    background-color: var(--bg2);
    margin: 2rem auto;
    width: 60%;
}

.section-border {
    background-color: var(--bg1); /* Optional: Background color */
    border: 1px solid var(--fg); /* Optional: Border for emphasis */
    border-radius: 8px; /* Optional: Rounded corners */
    padding: 1rem; /* Add padding inside the border */
    margin: 1rem 0; /* Add margin above and below the section */
    background-color: rgba(255, 255, 255, 0.1)
}

/* Style for enlarged image view */
.enlarged-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.enlarged-view img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

/* Text alignment utilities */
.text-center {
    text-align: center;
    margin-top: 2rem;
}

.about-preview .pixel-frame {
    justify-self: end; /* Align image to the right of its container */
}

/* Typewriter effect */
.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--text-color);
    margin-left: 1px;
    animation: blink-caret 1.2s step-end infinite;
    vertical-align: bottom;
}

.cursor.typing {
    animation: none;
}

@keyframes blink-caret {
    from, to { background-color: transparent; }
    50% { background-color: var(--text-color); }
}

.showcase-info h2 {
    color: var(--fg);
    margin-bottom: 0rem; /* Reduce space between type and finishes */
    font-size: 2rem;
    font-weight: normal; /* Make type lighter */
}

.showcase-info h3 {
    color: var(--fg);
    margin-top: 0rem; /* Reduce space between type and finishes */
    font-size: 1.4rem;
    font-weight: 300; /* Light font weight */
}
