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

body {
    background-color: #f0fff0;
    color: #2f4f4f;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 60px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    color: #2f4f4f;
}

h1 {
    font-size: 2.5em;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2em;
    border-bottom: 2px solid #2f4f4f;
    padding-bottom: 5px;
    text-transform: capitalize;
}

h3 {
    font-size: 1.5em;
    color: #3a5f5f;
}

h4 {
    font-size: 1.1em;
    color: #4f6f6f;
    font-style: italic;
}

p {
    margin-bottom: 15px;
}

/* Links and Buttons */
a {
    color: #2f4f4f;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4f6f6f;
}

button {
    padding: 8px 15px;
    margin-right: 10px;
    background-color: #2f4f4f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #4f6f6f;
}

/* Form Elements */
input,
textarea,
select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #2f4f4f;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4f6f6f;
    box-shadow: 0 0 5px rgba(47, 79, 79, 0.3);
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    background-color: #f0fff0;
    border-top: 1px solid #2f4f4f;
}

/* Navigation Base Styles */
.desktop-nav,
.mobile-nav {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 50px;
    background-color: #f5f5f5;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 10px;
}

/* Navigation Links */
.desktop-nav-links,
.mobile-nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    z-index: 999;
}

.desktop-nav-links.active,
.mobile-nav-links.active {
    opacity: 1;
    visibility: visible;
}

/* Navigation Items */
.home,
.projects,
.social,
.contact {
    background-color: #f5f5f5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    padding: 1px;
    margin-bottom: 5px;
    width: 120px;
    text-align: center;
    transition: transform 0.3s ease;
}

.home:hover,
.projects:hover,
.social:hover,
.contact:hover {
    transform: translateX(5px);
}

/* Hamburger Menu */
.hamburger,
.desktop-hamburger {
    cursor: pointer;
    padding: 10px;
    width: 30px;
    height: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span,
.desktop-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #2f4f4f;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1),
.desktop-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Projects Container and Grid */
.projects-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    transition: opacity 0.3s ease;
}

/* Sample Sites Container */
.sample-sites-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
}

.sample-site {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    overflow-y: auto;
}

.sample-site.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Back Button */
.back-button {
    position: fixed;
    top: 20px;
    left: 80px;
    padding: 10px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1001;
    color: #2f4f4f
}

.back-button:hover {
    transform: translateX(-5px);
}

/* Content Section Styles */
.content-section {
    border-radius: 15px;
    background-color: #f5f5f5;
    padding: 20px;
    margin: 20px auto;
    border: 2px solid #2f4f4f;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 800px;
}

.content-section:hover {
    transform: scale(1.01);
}

.content-section ul {
    text-align: center;
}

.content-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Sample Site Common Styles */
.sample-header {
    position: sticky;
    top: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 101;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sample-content {
    padding: 20px;
    height: calc(100% - 80px);
    overflow-y: auto;
}

/* Sample 1 - Business Theme */
.s1-header {
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.s1-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.s1-logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #2f4f4f;
}

.s1-nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
}

.s1-nav-links a {
    color: #2f4f4f;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.s1-nav-links a:hover {
    color: #4f6f6f;
}

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

.s1-hero {
    text-align: center;
    padding: 60px 20px;
    background: #f5f5f5;
    border-radius: 15px;
    margin: 20px 0;
}

.s1-hero h1 {
    color: #2f4f4f;
    margin-bottom: 20px;
}

.s1-hero p {
    font-size: 1.2em;
    color: #4f6f6f;
    margin-bottom: 30px;
}

.s1-cta {
    display: inline-block;
    padding: 12px 30px;
    background: #2f4f4f;
    color: white;
    border-radius: 25px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.s1-cta:hover {
    transform: translateY(-2px);
    background: #3a5f5f;
}

.s1-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.s1-feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

/* Sample 2 - Portfolio Theme */
.s2-header {
    padding: 2rem;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.s2-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.s2-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.s2-nav-links ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.s2-nav-links a {
    color: #333;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.s2-nav-links a:hover {
    color: #666;
}

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


.s2-hero {
    text-align: center;
    padding: 4rem 0;
}

.s2-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.s2-hero .accent {
    color: #666;
}

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

.s2-project {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.s2-project img {
    width: 100%;
    height: auto;
    display: block;
}

.s2-project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.s2-project-info h3 {
    margin: 0;
    color: white;
}

.s2-footer {
    text-align: center;
    padding: 2rem;
    background: #f5f5f5;
    margin-top: 4rem;
}

/* Sample 3 - Restaurant Theme */
.s3-header {
    background-color: #1a1a1a;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.s3-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.s3-logo {
    display: flex;
    gap: 10px; /* Space between Bistro and Elegance */
    color: #d4af37;
    font-size: 2em;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
}

.s3-logo span {
    color: #d4af37;
}

.s3-nav-links,
.s3-nav-links ul {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.s3-nav-links a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.s3-nav-links a:hover {
    color: #d4af37;
}


.s3-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.s3-hero h1 {
    color: #ffffff;
    margin-bottom: 20px;
}

.s3-cta {
    background-color: #d4af37;
    color: #1a1a1a;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.s3-cta:hover {
    background-color: #c19b2f;
}

.s3-menu {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.s3-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.s3-menu-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.s3-dish {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.price {
    color: #d4af37;
    font-weight: bold;
}

/* Sample 4 - E-commerce Theme */
.s4-header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.s4-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.s4-top {
    margin-bottom: 15px;
}

.s4-logo {
    font-size: 1.8em;
    font-weight: bold;
}

.s4-bottom {
    display: flex;
    align-items: center;
    gap: 30px;
}

.s4-nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.s4-nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.s4-cart {
    position: relative;
    cursor: pointer;
    margin-left: 20px;
}

.cart-icon {
    width: 24px;
    height: 24px;
}

.s4-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75em;
}

.s4-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.s4-product {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.s4-product:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.s4-add-to-cart {
    background-color: #28a745;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.s4-add-to-cart:hover {
    background-color: #218838;
}

section.s4-hero {
    text-align: center;
}

#products.s4-products h2 {
    text-align: center;
}

.s4-footer-section {
    text-align: center;
}

.s4-footer-section h3 {
    text-align: center;
    margin-bottom: 15px;
}

.s4-footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.s4-footer-section li {
    margin-bottom: 8px;
}

.s4-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}
/* Sample 5 - Blog Theme */
.s5-header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.s5-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.s5-logo {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.s5-nav-links {
    display: flex;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.s5-nav-links,
.s5-nav-links ul,
.s5-nav ul,
.s5-nav li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.s5-nav-links a {
    color: #4a4a4a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.s5-nav-links a:hover {
    color: #6b705c;
}

.s5-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.s5-post {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.s5-post:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.s5-sidebar {
    background-color: #f0efeb;
    padding: 20px;
    border-radius: 10px;
    position: sticky;
    top: 80px;
}

/* About Widget Styles */
.s5-about-widget {
    text-align: center;
    margin-bottom: 30px;
}

.s5-about-widget h3 {
    margin-bottom: 15px;
}

.s5-author-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: block;
}

/* Categories Widget Styles */
.s5-categories-widget {
    text-align: center;
    margin-bottom: 30px;
}

.s5-categories-widget h3 {
    margin-bottom: 15px;
}

.s5-categories-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.s5-categories-widget li {
    margin-bottom: 10px;
}

.s5-categories-widget a {
    color: #4a4a4a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.s5-categories-widget a:hover {
    color: #6b705c;
}

.s5-social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.s5-social-icons a {
    color: #4a4a4a;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.s5-social-icons a:hover {
    color: #6b705c;
}

/* Tablet and larger mobile devices */
@media (max-width: 768px) {
    .sample-sites-container,
    .sample-site,
    .sample-content {
        left: 0;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        position: fixed;
        top: 10px;
        left: 10px;
        width: 50px;
        z-index: 1000;
    }
    .content-section {
        width: calc(100% - 40px);
        margin: 20px auto;
    }

    @media (max-width: 768px) {
        @media (max-width: 768px) {
            /* Common Nav Styles and Business/Blog (Samples 1 and 5) */
            .s1-nav, .s5-nav {
                display: flex;
                flex-direction: column;
                align-items: center;
                width: 100%;
                padding: 10px;
                gap: 15px;
            }
        
            /* Logo Styles */
            .s1-logo, .s5-logo {
                margin-bottom: 10px;
                text-align: center;
            }
        
            /* Nav Links Container */
            .s1-nav-links, .s5-nav-links {
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;
                flex-wrap: wrap;
                gap: 15px;
                width: 100%;
                padding: 0;
                margin: 0;
            }
        
            /* Nav List Items */
            .s1-nav ul, .s5-nav ul {
                display: flex;
                flex-direction: row;
                justify-content: center;
                flex-wrap: wrap;
                gap: 15px;
                width: 100%;
                padding: 0;
                margin: 0;
                list-style: none;
            }
        
            /* Nav List Items */
            .s1-nav li, .s5-nav li {
                margin: 0;
                padding: 0;
            }
        
            /* Remove bullets */
            .s1-nav ul li, .s5-nav ul li {
                list-style-type: none;
            }
        
            /* Nav Links */
            .s1-nav a, .s5-nav a {
                padding: 5px 10px;
                white-space: nowrap;
            }
        
            /* Portfolio (Sample 2) Specific Fixes */
            .s2-header {
                padding: 15px;
                text-align: center;
            }
            
            
            .s2-nav {
                display: flex;
                flex-direction: column;
                align-items: center;
                width: 100%;
            }
        
            .s2-logo {
                font-size: 1.5rem;
                margin-bottom: 15px;
            }
        
            .s2-nav-links ul {
                display: flex;
                justify-content: center;
                gap: 20px;
                margin: 0;
                padding: 0;
                list-style: none;
            }

            .s2-nav-links a {
                text-decoration: none;
                color: #333;
            }
            

        
/* Restaurant (Sample 3) Specific Fixes */
.s3-header {
    padding: 15px;
    background-color: #1a1a1a;
}

.s3-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.s3-logo {
    display: flex;
    flex-direction: row; /* Changed to row */
    justify-content: center;
    align-items: center;
    color: #d4af37;
    font-size: 1.8em;
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

.s3-logo span {
    margin: 0 5px; /* Add spacing between Bistro and Elegance */
}

.s3-nav-links ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.s3-nav-links a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

.s3-nav-links a:hover {
    color: #d4af37;
}

.s3-main {
    padding: 0 15px;
}

.s3-menu {
    padding: 40px 15px;
}

.s3-menu-item {
    padding: 20px;
}
}
.s3-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    background-size: cover;
    background-position: center;
    height: 40vh; /* Reduced from 80vh */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center */
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding-top: 40px; /* Added specific top padding */
}
.s3-hero h1 {
    color: #ffffff;
    margin-bottom: 20px;
}

.s3-hero p {
    margin-bottom: 30px;
}

.s3-cta {
    background-color: #d4af37;
    color: #1a1a1a;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.s3-cta:hover {
    background-color: #c19b2f;
}
        
            /* E-commerce (Sample 4) Specific Fixes */
.s4-header {
    padding: 15px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.s4-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.s4-logo {
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.s4-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.s4-nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.s4-cart {
    position: relative;
    cursor: pointer;
}

.cart-icon {
    width: 24px;
    height: 24px;
}

.s4-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75em;
}

    /* Grid adjustments */
    .s1-features,
    .s2-gallery,
    .s3-menu-grid,
    .s4-product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .s5-main {
        grid-template-columns: 1fr;
    }
}

/* Blog (Sample 5) Sidebar Fixes */
.s5-sidebar {
    background-color: #f0efeb;
    padding: 20px;
    border-radius: 10px;
    position: sticky;
    top: 80px;
}

.s5-about-widget, .s5-categories-widget {
    margin-bottom: 30px;
}

.s5-about-widget h3, .s5-categories-widget h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #333;
}

.s5-author-img {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.s5-about-widget p {
    text-align: center;
    font-size: 0.9em;
    color: #666;
}

.s5-categories-widget ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.s5-categories-widget li {
    margin-bottom: 10px;
}

.s5-categories-widget a {
    display: block;
    text-align: center;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.s5-categories-widget a:hover {
    color: #6b705c;
}

/* Blog (Sample 5) Footer Quick Links Fix */
.s5-footer-section {
    text-align: center;
    margin-bottom: 20px;
}

.s5-footer-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.s5-footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.s5-footer-section li {
    margin-bottom: 8px;
}

.s5-footer-section a {
    color: #4a4a4a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.s5-footer-section a:hover {
    color: #6b705c;
}

/* If you have a grid layout for the footer sections, ensure they're aligned */
.s5-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}


/* Mobile devices */
@media (max-width: 430px) {
    body {
        padding: 10px;
        margin: 0;
        margin-top: 70px;
    }
    .mobile-nav {
        position: fixed;
        top: 10px;
        left: 10px;
        width: 50px;
        z-index: 1000;
    }

    /* Remove bullets from all levels */
    .mobile-nav-links,
    .mobile-nav-links ul,
    .mobile-nav-links li {
        list-style: none;
        list-style-type: none;
        padding: 0;
        margin: 0;
    }


    .mobile-nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    main {
        margin-left: 35px;
        width: calc(100% - 70px);
    }

    .content-section,
    #projects {
        width: calc(100% - 40px);
        padding: 15px;
        margin: 15px auto;
    }

    .projects-container {
        width: 100%;
        padding: 0;
        margin: 0;
        margin-top: 70px; /* Adjust this value as needed */
    }

    .project-card {
        width: 100%;
        margin-bottom: 15px;
    }

    .sample-site .sample-content {
        padding: 10px;
        width: 100%;
        overflow-x: hidden;
    }

    .back-button {
        left: 70px;
        top: 15px;
    }

    .s1-hero,
    .s2-hero,
    .s3-hero,
    .s4-hero,
    .s5-hero {
        padding: 30px 15px;
    }

    .s1-hero h1,
    .s2-hero h1,
    .s3-hero h1,
    .s4-hero h1,
    .s5-hero h1 {
        font-size: 1.8em;
    }

    .s1-footer,
    .s2-footer,
    .s3-footer,
    .s4-footer,
    .s5-footer {
        padding: 20px 15px;
        width: 100%;
    }

    .s1-feature-card,
    .s2-project,
    .s3-menu-item,
    .s4-product,
    .s5-post {
        margin: 10px 0;
        width: 100%;
    }

    .mobile-nav-links {
        position: fixed;
        top: 60px;
        left: 80px;
        right: 10px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: calc(100% - 150px);
        z-index: 1000;
        padding: 5px 0;
        overflow-x: auto;
    }
    
    .mobile-nav-links ul {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 15px; /* Add gap between items */
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /* Navigation bubbles */
    .home,
    .projects,
    .social,
    .contact {
        flex: 0 0 auto; /* Prevent shrinking */
        margin-right: 15px; /* Add right margin to each item */
    }
    /* Hide the navigation by default */
    .mobile-nav-links {
        display: none;
    }

    /* Show the navigation when active */
    .mobile-nav-links.active {
        display: flex;
    }
}

/* High-DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .sample-site img {
        image-rendering: -webkit-optimize-contrast;
    }

    .box-shadow {
        box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    }
}

/* Print Styles */
@media print {
    .desktop-nav,
    .mobile-nav,
    .back-button {
        display: none !important;
    }

    body {
        padding: 0;
        margin: 0;
    }

    .sample-site {
        position: relative;
        overflow: visible;
    }
}

#projects,
#social-media,
#contact-me {
    scroll-margin-top: 60px;
}

@supports (-webkit-touch-callout: none) {
    .sample-sites-container,
    .sample-site {
        height: -webkit-fill-available;
    }
}
}