/* Local font declarations */
@font-face {
    font-family: 'Geometric Slab';
    src: url('fonts/GeometricSlab712BT-LightA.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geometric Slab';
    src: url('fonts/GeometricSlab712BT-LightItalicA.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Geometric Slab';
    src: url('fonts/GeometricSlabserif712BT-Med.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geometric Slab';
    src: url('fonts/GeometricSlab712BT-MediumItalA.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Geometric Slab';
    src: url('fonts/GeometricSlab712BT-BoldA.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geometric Slab';
    src: url('fonts/GeometricSlab712BT-ExtraBoldA.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Dark theme (default) */
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: rgba(44, 62, 80, 0);
    --card-border: rgba(255, 255, 255, 0.1);
    --radiator-green: #00c853;
    --radiator-green-hover: #00e676;
    --radiator-green-active: #00b248;
    --dark-grey: #1a1a1a;
    --light-text: #ffffff;
    --button-hover: #00a844;
    --font-primary: 'Geometric Slab', serif;
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: rgba(248, 249, 250, 0.2);
    --card-border: rgba(0, 0, 0, 0.08);
    --dark-grey: rgba(248, 249, 250, 0.2);
    --light-text: #333333;
    --button-hover: #00e676;
}

/* Update specific card backgrounds for light theme */
[data-theme="light"] .intro-section,
[data-theme="light"] .inventory-section,
[data-theme="light"] .services-section,
[data-theme="light"] .content-block,
[data-theme="light"] .contact-info,
[data-theme="light"] .hours-info {
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
}

/* Add smooth transitions for theme changes */
html, body {
    transition: none;
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#themeToggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: background-color 0.3s ease;
    min-width: 40px;
    min-height: 40px;
}

#themeToggle:hover {
    background-color: var(--card-bg);
}

#themeToggle svg {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

/* Apply font to all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

body {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: none;
}

body.loading {
    opacity: 1;
    transform: none;
}

/* Main container for page content */
.container {
    width: 100%;
    margin: 0;
    padding: 0 15px;
    flex: 1;
    position: relative;
}

.content-container {
    width: 100%;
    margin: 0;
    padding: 0 15px;
}

main {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Header styling with logo and navigation */
header {
    background: var(--card-bg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    min-height: 80px;
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 1rem;
}

.logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-width: 200px;
    min-height: 60px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.logo img {
    max-height: 60px;
    width: auto;
    display: block;
    position: relative;
    margin-right: 1rem;
}

/* Logo theme handling */
.logo img[data-theme="light"] {
    display: none;
}

.logo img[data-theme="dark"] {
    display: block;
}

[data-theme="light"] .logo img[data-theme="light"] {
    display: block;
}

[data-theme="light"] .logo img[data-theme="dark"] {
    display: none;
}

.logo-text {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.logo-text-green {
    font-family: var(--font-primary);
    color: var(--radiator-green);
}

.intro-section {
    background-color: var(--card-bg);
    padding: 2.5rem 0;
    margin: 2rem 0;
    width: 100%;
    backdrop-filter: blur(10px);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.intro-main {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.intro-main h2 {
    color: var(--radiator-green);
    margin-bottom: 1.5rem;
    font-size: 2.4rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.intro-main .mission {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--light-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0;
}

.intro-image {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.intro-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.section-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--card-border);
}

.section-image:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.inventory-section {
    background-color: var(--card-bg);
    padding: 2.5rem 0;
    margin: 2rem 0;
    width: 100%;
    backdrop-filter: blur(10px);
}

.inventory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.inventory-main {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.inventory-main h2 {
    color: var(--radiator-green);
    margin-bottom: 1.5rem;
    font-size: 2.4rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.inventory-main p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--light-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.inventory-image {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.inventory-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .content-container {
        padding: 0 15px;
    }

    main {
        padding: 0;
    }

    .intro-section,
    .inventory-section {
        margin: 1.5rem 0;
    }

    .intro-grid,
    .inventory-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }

    .intro-main,
    .inventory-main {
        width: 100%;
        padding: 0;
        order: 1;
    }

    .intro-image,
    .inventory-image {
        width: 100%;
        padding: 0;
        order: 2;
    }

    .intro-image img,
    .inventory-image img {
        width: 100%;
        height: auto;
    }

    .shop-image-container {
        padding: 0;
        margin: 1.5rem 0;
        width: 100%;
    }
    
    .shop-image {
        border-radius: 8px;
        width: 100%;
    }

    .services-section {
        padding: 0 15px;
    }

    .service-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .intro-main,
    .inventory-main {
        padding: 0 10px;
    }

    .service-buttons {
        gap: 0.25rem;
        padding: 0 0.25rem;
        margin-bottom: 1rem;
    }
    .service-button {
        padding: 0.15rem 0.6rem;
        font-size: 0.85rem;
        margin: 0.15rem;
        border-radius: 15px;
        min-width: 80px;
        text-align: center;
    }
    .service-content {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem 1.5rem 0.5rem;
    }
    .service-content h3 {
        font-size: 1.5rem;
    }
    .service-content p {
        font-size: 0.95rem;
    }

    .logo-text {
        font-size: 1.8rem;
    }
}

html, body {
    height: 100%;
}

.container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.content-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2.5rem;
    width: 100%;
}

.content-section {
    margin-bottom: 0;
    padding: 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.content-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.content-section h3 {
    color: var(--radiator-green);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-align: center;
    width: 100%;
}

.content-section p {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.2rem;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

@media (max-width: 768px) {
    .content-sections {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .content-section {
        padding: 1.2rem;
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .content-sections {
        gap: 0.3rem;
    }

    .content-section {
        padding: 1rem;
    }
}

.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
    border-left: 2px solid var(--radiator-green);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item h4 {
    color: var(--radiator-green);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-item p {
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .content-section {
        padding: 1.5rem;
        margin: 1.5rem;
    }

    .content-section h3 {
        font-size: 1.6rem;
    }

    .content-section p {
        font-size: 1rem;
    }

    .timeline-item h4 {
        font-size: 1.2rem;
    }
}

/* Navigation menu with centered links */
.main-nav {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    min-height: 40px;
    padding-right: 2rem;
}

/* Navigation link styling with hover effects */
.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: none !important;
    white-space: nowrap;
    border: 2px solid transparent;
    min-width: 100px;
    text-align: center;
}

.nav-link:hover {
    background: var(--radiator-green);
    color: var(--dark-grey);
}

/* Active page indicator in navigation */
body[data-page="home"] .nav-link[href="index.html"],
body[data-page="gallery"] .nav-link[href="showcase.html"],
body[data-page="about"] .nav-link[href="about.html"] {
    border-color: var(--radiator-green);
}

/* Hover state for active page link */
body[data-page="home"] .nav-link[href="index.html"]:hover,
body[data-page="gallery"] .nav-link[href="showcase.html"]:hover,
body[data-page="about"] .nav-link[href="about.html"]:hover {
    background: transparent;
    color: var(--radiator-green);
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    header {
        padding: 0.5rem;
    }

    .header-content {
        margin-bottom: 0.5rem;
    }

    .logo {
        min-width: auto;
    }

    .logo-text {
        font-size: 1.8rem;
    }

    .main-nav {
        justify-content: flex-end;
        gap: 1rem;
        padding-right: 1rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .theme-toggle {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }

    .main-nav {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
        padding-right: 0.5rem;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }

    .logo-text {
        font-size: 1.6rem;
    }
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
    width: 100%;
}

.content-block {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 8px;
    transition: none !important;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.main-block {
    grid-column: 1 / -1;
    background: var(--card-bg);
}

.services-block {
    background: var(--card-bg);
}

.content-block:hover {
    transform: translateY(-5px);
    border-color: var(--radiator-green);
}

.content-block h3 {
    color: var(--radiator-green);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.content-block p {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.history-section {
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
    width: 100%;
    max-width: 1200px;
}

.history-section h3 {
    color: var(--radiator-green);
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.scott-photo {
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scott-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-content {
    padding: 1rem 0;
    position: relative;
}

.gallery-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Gallery Navigation */
.gallery-navigation {
    width: 100%;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.gallery-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 10;
}

.decade-button {
    background: var(--dark-grey);
    color: var(--text-color);
    padding: 1rem;
    border: 2px solid var(--radiator-green);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: none !important;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    letter-spacing: 0.03em;
    position: relative;
    flex: 1;
    min-width: 200px;
    white-space: nowrap;
}

.decade-button:hover {
    background: var(--radiator-green);
    color: var(--light-text);
    transform: translateY(-2px);
}

.decade-button.active {
    background: var(--radiator-green);
    color: var(--light-text);
}

/* Projects Display */
.projects-display {
    width: 100%;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 10;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 10;
    min-height: 50px; /* Ensure there's always space for the active button */
}

/* Service Button */
.service-button {
    padding: 0.3rem 1.1rem;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 12px;
    border: 2px solid var(--radiator-green);
    background: var(--dark-grey);
    color: var(--text-color);
    cursor: pointer;
    margin: 0.2rem;
    white-space: nowrap;
    transition: none !important;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    letter-spacing: 0.03em;
    display: inline-block;
    min-width: 120px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.service-button:hover,
.service-button:focus {
    background: var(--radiator-green);
    color: var(--light-text);
    transform: translateY(-2px);
}

.service-button.active {
    background: var(--radiator-green);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Gallery Display - Simplified approach */
.gallery-display {
    position: relative;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    z-index: 1;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    min-height: 700px;
    display: none;
}

.gallery-display.active {
    display: block;
}

/* Gallery Container - Much simpler */
#my-gallery {
    display: none;
    width: 100%;
    min-height: 700px;
    margin: 0 auto;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 10px;
}

/* Let Cloudinary handle its own layout with minimal interference */
#my-gallery .cld-gallery {
    width: 100%;
    min-height: 680px;
    background: transparent;
}

#my-gallery .cld-gallery-main {
    width: 100%;
    min-height: 680px;
    background: transparent;
}

/* Make the main image area transparent */
#my-gallery .cld-gallery-main .cld-gallery-image,
#my-gallery .cld-gallery-main .cld-gallery-image-wrapper {
    background: transparent !important;
}

/* Ensure the main image container has transparent background */
#my-gallery .cld-gallery-main > div {
    background: transparent !important;
}

/* Target the actual image elements and their backgrounds */
#my-gallery .cld-gallery-main img {
    background: transparent !important;
    background-color: transparent !important;
}

/* Target Cloudinary's image wrapper divs */
#my-gallery .cld-gallery-main .cld-image,
#my-gallery .cld-gallery-main .cld-image-wrapper,
#my-gallery .cld-gallery-main .cld-main-image {
    background: transparent !important;
    background-color: transparent !important;
}

/* Target any div that might contain the main image */
#my-gallery .cld-gallery-main div[style*="background"] {
    background: transparent !important;
    background-color: transparent !important;
}

/* Gallery Placeholder */
#gallery-placeholder {
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--light-text);
    background: transparent;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-error {
    text-align: center;
    padding: 2rem;
    color: var(--error-color, #ff6b6b);
    font-size: 1.1rem;
    background: var(--card-bg);
    border: 1px solid var(--error-color, #ff6b6b);
    border-radius: 8px;
    margin: 1rem 0;
}

.current-project-title,
#gallery-placeholder,
.gallery-prompt,
.service-placeholder {
    font-size: 1.4rem;
    margin: 0.8rem 0;
    padding: 0.4rem 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-display {
        min-height: 500px;
        margin-bottom: 1rem;
    }
    
    #my-gallery {
        min-height: 500px;
    }
    
    #my-gallery .cld-gallery,
    #my-gallery .cld-gallery-main {
        min-height: 480px;
    }
    
    .current-project-title,
    #gallery-placeholder,
    .gallery-prompt,
    .service-placeholder {
        font-size: 1.4rem;
        margin: 0.8rem 0;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .gallery-display {
        min-height: 400px;
        margin-bottom: 1rem;
    }
    
    #my-gallery {
        min-height: 400px;
        padding: 5px;
    }
    
    #my-gallery .cld-gallery,
    #my-gallery .cld-gallery-main {
        min-height: 380px;
    }
    
    .current-project-title,
    #gallery-placeholder,
    .gallery-prompt,
    .service-placeholder {
        font-size: 1.4rem;
        margin: 0.8rem 0;
        padding: 0.4rem 0.8rem;
    }
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.contact-info, .hours-info {
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--radiator-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    backdrop-filter: blur(10px);
}

.contact-hours-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .contact-hours-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .contact-button {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-button {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 360px) {
    .contact-button {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

.contact-info p {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-color);
    margin: 0.5rem 0;
}

.contact-info .address {
    font-size: 1rem;
}

.hours-info {
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--radiator-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    backdrop-filter: blur(10px);
}

.hours-grid {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--card-border);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-day {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-color);
    text-align: left;
}

.hours-time {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-color);
    text-align: right;
}

@media (max-width: 768px) {
    .contact-hours-container {
        grid-template-columns: 1fr;
    }
    .hours-info p {
        font-size: 1rem;
    }
    .hours-day,
    .hours-time {
        font-size: 1rem;
    }
    .hours-row {
        padding: 0.4rem 0;
    }
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    width: 100%;
}

.section-title {
    color: var(--radiator-green);
    font-size: 2rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

.contact-buttons .phone-buttons {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.contact-buttons .social-buttons {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.contact-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--dark-grey);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: none !important;
    border: 2px solid var(--radiator-green);
    white-space: nowrap;
}

.contact-button:hover {
    background: var(--radiator-green);
    color: var(--light-text);
}

.contact-buttons .address {
    width: 100%;
    text-align: center;
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-color);
}

.title-container {
    width: 100%;
    margin-bottom: 1rem;
}

/* Smooth page transitions */
body {
    opacity: 1;
    transform: none;
}

body.loading {
    opacity: 1;
    transform: none;
}

/* Ensure content is ready before showing */
html {
    visibility: visible;
}

/* Prevent flash during page load */
[data-theme="light"] body {
    background-color: var(--bg-color);
}

/* Prevent element flashing during page transitions */
body.loading * {
    transition: none !important;
}

/* Remove transitions for all elements */
.nav-link,
.service-button,
.service-nav,
.contact-button,
.gallery-item,
.content-block,
.intro-section,
.inventory-section,
.services-section,
.gallery-display,
.service-content,
img,
p, h1, h2, h3, h4, h5, h6 {
    transition: none !important;
}

/* Remove loading states for all elements */
.gallery-display.loading,
.service-content.loading,
.content-block.loading,
img.loading,
p.loading, h1.loading, h2.loading, h3.loading, h4.loading, h5.loading, h6.loading {
    opacity: 1;
    transform: none;
}

/* Add transition for gallery content */
.gallery-display {
    transition: opacity 0.3s ease-in-out;
}

.gallery-display.loading {
    opacity: 0;
}

/* Add transition for service content */
.service-content {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(0);
}

.service-content.loading {
    opacity: 0;
    transform: translateY(10px);
}

/* Add transition for content blocks */
.content-block {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(0);
}

.content-block.loading {
    opacity: 0;
    transform: translateY(10px);
}

/* Add transition for images */
img {
    transition: opacity 0.3s ease-in-out;
}

img.loading {
    opacity: 0;
}

/* Add transition for text content */
p, h1, h2, h3, h4, h5, h6 {
    transition: opacity 0.3s ease-in-out;
}

p.loading, h1.loading, h2.loading, h3.loading, h4.loading, h5.loading, h6.loading {
    opacity: 0;
}

.services-section {
    margin: 2rem 0;
    position: relative;
    min-height: 200px;
    padding: 0 15px;
}

.services-section h2 {
    text-align: center;
    color: var(--radiator-green);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.service-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-button {
    padding: 0.3rem 1.1rem;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 12px;
    border: 2px solid var(--radiator-green);
    background: var(--dark-grey);
    color: var(--text-color);
    cursor: pointer;
    margin: 0.2rem;
    white-space: nowrap;
    transition: none !important;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    letter-spacing: 0.03em;
    display: inline-block;
    min-width: 120px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.service-button:hover,
.service-button:focus {
    background: var(--radiator-green);
    color: var(--light-text);
    transform: translateY(-2px);
}

.service-button.active {
    background: var(--radiator-green);
    color: var(--light-text);
}

.service-content {
    display: none;
    margin: 0 auto 2rem auto;
    max-width: 1200px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    padding: 2rem;
    position: static;
    z-index: 1;
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

.service-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-content:target {
    display: block;
}

.service-content h3 {
    color: var(--radiator-green);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 600;
}

.service-content p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.service-content ul {
    list-style-position: inside;
    margin: 1rem 0;
}

.service-content li {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.service-content a {
    color: var(--radiator-green);
    text-decoration: underline;
    transition: color 0.2s;
}

.service-content a:hover {
    color: var(--radiator-green);
}

.service-nav {
    position: relative;
    padding: 0.5rem 1rem;
    background: var(--dark-grey);
    border: none;
    border-radius: 12px;
    border: 2px solid var(--radiator-green);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none !important;
    z-index: 2;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.service-nav:hover {
    background: var(--radiator-green);
    transform: scale(1.1);
    color: var(--light-text);
}

.service-button.active {
    background: var(--radiator-green);
    color: var(--light-text);
}

@media (max-width: 768px) {
    .service-buttons {
        padding: 0 1rem;
    }
    
    .container {
        padding: 10px;
    }

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

    .intro-section p {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .logo img {
        max-height: 50px;
    }

    .service-nav {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .service-button {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .service-content h3 {
        font-size: 1.6rem;
    }
    
    .service-content p,
    .service-content li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .service-button {
        font-size: 1rem;
        padding: 0.15rem 0.6rem;
        min-width: 80px;
    }
    
    .service-content h3 {
        font-size: 1.4rem;
    }
    
    .service-content p,
    .service-content li {
        font-size: 0.95rem;
    }
}

.shop-image-container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0;
    text-align: center;
}

.shop-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--card-border);
}

@media (max-width: 768px) {
    .shop-image-container {
        padding: 0;
        margin: 1.5rem 0;
        width: 100%;
    }
    
    .shop-image {
        border-radius: 8px;
        width: 100%;
    }
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
}

.footer-bottom img {
    max-width: 150px;
    height: auto;
    margin-bottom: 0.5rem;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: brightness(1.1) contrast(1.1);
}

.footer-bottom p {
    margin: 0.3rem 0;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.8;
}

.footer-bottom p:last-child {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom a {
    color: #7FB3D5;  /* Glacier blue color */
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #AED6F1;  /* Lighter glacier blue for hover */
}

/* Gallery Container */
#my-gallery {
    display: none;
    max-width: 80%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Contact Info */
.contact-info p,
.hours-day,
.hours-time {
    font-size: 1.2rem;
    font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        font-size: 1.1rem;
    }
    
    .nav-link,
    .service-button,
    .service-content p,
    .service-content li,
    .contact-info p,
    .hours-day,
    .hours-time,
    .footer-bottom p {
        font-size: 1.2rem;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .service-content h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .nav-link,
    .service-button {
        font-size: 1rem;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .service-content h3 {
        font-size: 1.6rem;
    }
}

/* About Page Specific Styles */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.content-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2.5rem;
    width: 100%;
}

.content-section {
    margin-bottom: 0;
    padding: 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.content-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.content-section h3 {
    color: var(--radiator-green);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-align: center;
    width: 100%;
}

.content-section p {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.2rem;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
    width: 100%;
}

.history-section {
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
    width: 100%;
    max-width: 1200px;
}

.history-section h3 {
    color: var(--radiator-green);
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.timeline-item h4 {
    color: var(--radiator-green);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Responsive adjustments for about page */
@media (max-width: 768px) {
    .about-content {
        padding: 1rem;
    }

    .content-sections {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .content-section {
        padding: 1.2rem;
        margin: 0;
        width: 100%;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .history-section {
        margin: 2rem auto;
        padding: 1.5rem;
    }

    .content-block {
        padding: 1.5rem;
        margin: 0;
    }

    .history-section h3 {
        font-size: 2rem;
    }

    .timeline-item h4 {
        font-size: 1.4rem;
    }

    .timeline-item p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .content-sections {
        gap: 0.3rem;
    }

    .content-section {
        padding: 1rem;
    }

    .content-grid {
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .history-section {
        margin: 1.5rem auto;
        padding: 1rem;
    }

    .content-block {
        padding: 1rem;
        margin: 0;
    }

    .history-section h3 {
        font-size: 1.8rem;
    }

    .timeline-item h4 {
        font-size: 1.3rem;
    }

    .timeline-item p {
        font-size: 1rem;
    }
}

.service-placeholder {
    text-align: center;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--light-text);
    background: transparent;
    letter-spacing: 0.02em;
    transition: opacity 0.3s ease;
}

.service-placeholder.hidden {
    display: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--radiator-green);
    color: var(--dark-grey);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    border: 2px solid var(--radiator-green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .back-to-top {
    background: var(--dark-grey);
    color: var(--radiator-green);
    border-color: var(--radiator-green);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .back-to-top:hover {
    background: var(--radiator-green);
    color: var(--dark-grey);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
}

/* Footer styling */
footer {
    width: 100%;
    margin-top: auto;
    padding: 1rem 0;
}

.gallery-prompt {
    text-align: center;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--light-text);
    background: transparent;
    letter-spacing: 0.02em;
    display: block;
}

.gallery-display {
    position: relative;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    z-index: 1;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    min-height: 700px;
    display: none;
}

.current-project-title {
    display: none;
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--light-text);
    background: transparent;
    letter-spacing: 0.02em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-display {
        min-height: 500px;
        margin-bottom: 1rem;
    }
    
    #my-gallery {
        min-height: 500px;
    }
    
    #my-gallery .cld-gallery,
    #my-gallery .cld-gallery-main {
        min-height: 480px;
    }
    
    .current-project-title,
    #gallery-placeholder,
    .gallery-prompt,
    .service-placeholder {
        font-size: 1.4rem;
        margin: 0.8rem 0;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .gallery-display {
        min-height: 400px;
        margin-bottom: 1rem;
    }
    
    #my-gallery {
        min-height: 400px;
        padding: 5px;
    }
    
    #my-gallery .cld-gallery,
    #my-gallery .cld-gallery-main {
        min-height: 380px;
    }
    
    .current-project-title,
    #gallery-placeholder,
    .gallery-prompt,
    .service-placeholder {
        font-size: 1.4rem;
        margin: 0.8rem 0;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 320px) {
    .contact-button {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .contact-button {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .service-button {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .service-nav {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .decade-button {
        font-size: 1rem;
        padding: 0.8rem;
    }
}

@media (max-width: 360px) {
    .contact-button {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .service-button {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .service-nav {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .decade-button {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
}

@media (max-width: 320px) {
    .contact-button {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .service-button {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .nav-link {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .service-nav {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }
    
    .decade-button {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
} 