/* Base Styles */
body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #2b2b2b; /* Dark gray */
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

body.dark-mode {
    background-color: #1c1c1c;
    color: #e0e0e0;
}

/* Header Styles */
header {
    display: flex;                 /* Changed from flex column to block for independent stacking */
    flex-direction: column;        /* Ensures logo and navigation are stacked vertically */
    align-items: center;           /* Centers both the logo and nav elements */
    justify-content: center;       /* Centers content in header vertically */
    padding: 1.5rem 1rem;          /* Increased padding for better spacing */
    background: #333;              /* Retained background color */
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.logo-container {
    margin-bottom: 20px;           /* Added more space below the logo */
    text-align: center;            /* Ensure logo aligns to the center of the header */
}

.logo-container img {
    height: 100px;                 /* Increased logo size from 80px to 100px */
    max-width: 100%;               /* Prevents image overflow */
}

/* Navigation Styles */
nav {
    display: flex;                 /* Keeps navigation links in a horizontal row */
    justify-content: center;       /* Centers navigation links */
    gap: 20px;                     /* Added spacing between links */
    flex-wrap: wrap;               /* Allows navigation links to wrap on smaller screens */
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;       /* Increased padding for better click area */
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-radius: 5px;            /* Added rounded corners */
}

nav a:hover {
    background-color: #444;        /* Retained hover effect */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        padding: 1rem;             /* Reduced padding for smaller screens */
    }

    .logo-container img {
        height: 80px;              /* Reduced logo size on smaller screens */
    }

    nav {
        gap: 10px;                 /* Reduced spacing between links on smaller screens */
    }

    nav a {
        font-size: 0.9rem;         /* Reduced font size for links */
        padding: 0.5rem 1rem;      /* Reduced padding for links */
    }
}

/* Section Shortcuts */
#section-shortcuts {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background: #d68d2c; /* Soft ochre yellow */
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#section-shortcuts a {
    display: inline-block;
    text-decoration: none;
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 10px;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#section-shortcuts a:hover {
    background-color: white;
    color: #d68d2c;
    transform: scale(1.1);
}

/* Gallery Section */
.gallery-section {
    margin: 30px auto;
    padding: 20px;
    background: #1e1e1e; /* Light gray */
    border-radius: 10px;
    color: white; /* White text */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    max-width: 1200px;
}

.gallery-section h2 {
    margin-top: 0;
    text-align: center;
    font-size: 1.5rem;
    color: #ffffff; /* Dark text for contrast */
    border-bottom: 3px solid #d68d2c;
    padding-bottom: 10px;
    display: inline-block;
}

/* Gallery Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.painting .description {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 8px;
    color: #333; /* Dark text for contrast */
    transition: color 0.3s ease;
}

.painting:hover .description {
    color: #d68d2c;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Slightly darker background */
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: #e0e0e0; /* Light gray */
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    position: relative;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.modal img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal .details {
    margin-top: 10px;
    font-size: 1rem;
    color: #333; /* Dark text for contrast */
}

.modal .details p {
    margin: 8px 0;
}

.modal:target {
    display: flex;
}

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

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: #333;
    color: white;
    border: none;
    font-size: 18px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: #555;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .gallery img {
        height: 150px;
    }

    .modal-content {
        max-width: 90%;
    }
}

/* Home Section Styles */
.home-section {
    background-color: #2b2b2b; /* Matches the dark gray site background */
    padding: 50px 20px;
    color: white;
    font-family: 'Roboto', Arial, sans-serif;
}

.home-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Responsive stacking for smaller screens */
}

.home-image img {
    max-width: 400px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.home-caption {
    max-width: 600px;
}

.home-caption h1 {
    font-size: 2rem;
    color: #f4a261; /* Ochre accent for headings */
    margin-bottom: 15px;
}

.home-caption p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f4a261; /* Ochre accent */
    color: #2b2b2b;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #d88a43;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-container {
        flex-direction: column;
        text-align: center;
    }

    .home-image img {
        max-width: 300px;
        margin-bottom: 20px;
    }

    .home-caption h1 {
        font-size: 1.8rem;
    }
}

/* Social Media Links */
.social-links {
    margin-top: 10px;
    display: flex;                /* Use flexbox for alignment */
    justify-content: center;      /* Horizontally center the icons */
    gap: 20px;                    /* Space between links */
    padding-bottom: 20px;         /* Add spacing below the icons */
}

.social-links a {
    color: #d68d2c;               /* Ochre accent for text */
    font-size: 1.2rem;            /* Size of the icons and text */
    text-decoration: none;
    display: flex;                /* Align the icon and text within the link */
    align-items: center;          /* Vertically center icon and text */
    gap: 8px;                     /* Space between icon and text */
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #f4a261;               /* Lighter ochre for hover effect */
    transform: scale(1.1);        /* Slight zoom-in effect */
}

.social-links i {
    font-size: 1.5rem;            /* Icon size */
}