@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: #fff;
    background-image: url('clouds_bg_1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.header-logo {
    margin-bottom: 1rem;
}

.header-logo img {
    max-width: 200px;
    height: auto;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    color: #fff;
    font-size: 1.1rem;
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.back-link {
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #666;
}

/* Navigation Styles */
.main-nav {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.main-nav a:hover {
    border-bottom-color: #fff;
}

.main-nav a.active {
    border-bottom-color: #fff;
    font-weight: 500;
}

.detail-page header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-page .main-nav {
    margin-top: 0;
}

.loading-message {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: #777;
    grid-column: 1 / -1;
}

/* Gallery Grid Styles */
main {
    max-width: 2400px;
    margin: 0 auto;
    padding: 2rem;
}

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

.artwork-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #fff;
}

.artwork-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

/* Hover Magnification Effect */
.artwork-item:hover .image-container img {
    transform: scale(1.15);
}

/* Detail Page Styles */
.detail-page {
    background-color: #1a1a1a;
    color: #fff;
}

.detail-page header {
    background-color: #2a2a2a;
    text-align: left;
}

.detail-main {
    min-height: calc(100vh - 100px);
    padding: 2rem;
}

.detail-container {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr 600px;
    gap: 2rem;
    align-items: start;
    padding: 0 2rem;
}

.image-detail-wrapper {
    position: relative;
    top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
}

.image-zoom-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
    cursor: crosshair;
    max-width: 600px;
}

.image-zoom-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Navigation Arrows */
.nav-arrow {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-arrow:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.nav-arrow-left {
    order: -1;
}

.nav-arrow-right {
    order: 1;
}

.nav-arrow svg {
    color: #333;
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(42, 42, 42, 0.95);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.image-zoom-container:hover .zoom-controls {
    opacity: 1;
    visibility: visible;
}

.zoom-controls label {
    color: #fff;
    font-size: 0.9rem;
    white-space: nowrap;
}

.zoom-controls input[type="range"] {
    width: 150px;
    height: 6px;
    background: #444;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.zoom-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.zoom-controls input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.zoom-controls input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
}

.zoom-controls input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.zoom-controls span {
    color: #fff;
    font-size: 0.9rem;
    min-width: 40px;
    font-weight: 500;
}

/* Magnified View Styles */
.magnified-view {
    position: sticky;
    top: 2rem;
    border-radius: 8px;
    background-color: #000;
    border: 3px solid #444;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    width: 600px;
    height: 600px;
    align-self: start;
}

/* Show magnified view on hover */
.detail-container:has(.image-zoom-container:hover) .magnified-view {
    opacity: 1;
    visibility: visible;
}

.magnified-image {
    width: 100%;
    height: 100%;
    background-size: 300%;
    background-repeat: no-repeat;
}

/* Artwork Info Styles */
.artwork-info {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
    position: sticky;
    top: 2rem;
    align-self: start;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.artwork-info h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    border-bottom: 1px solid #444;
    padding-bottom: 1rem;
    word-wrap: break-word;
}

.info-section {
    margin-bottom: 1.5rem;
}

.info-section h3 {
    color: #999;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.info-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    word-wrap: break-word;
}

/* About Page Styles */
.about-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.about-container {
    background-color: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-intro {
    margin-bottom: 3rem;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2rem;
}

.about-intro h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #333;
}

.about-intro .lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #666;
    font-style: italic;
}

.about-section {
    margin-bottom: 2.5rem;
}

.about-section h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #333;
    border-left: 4px solid #333;
    padding-left: 1rem;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.credentials-list,
.projects-list,
.awards-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.credentials-list li,
.awards-list li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.credentials-list li:before,
.awards-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333;
    font-weight: bold;
}

.projects-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-left: 2px solid #e0e0e0;
    margin-left: 0.5rem;
}

.projects-list li:before {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #333;
    border-radius: 50%;
}

.contact-section {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
}

.contact-info p {
    margin: 0.75rem 0;
    font-size: 1.1rem;
}

.contact-info a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    transition: border-color 0.3s ease;
}

.contact-info a:hover {
    border-bottom-color: #333;
}

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

.about-footer a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.about-footer a:hover {
    color: #666;
}

/* Responsive Design */
@media (min-width: 1600px) {
    .detail-container {
        grid-template-columns: 350px 1fr 700px;
        gap: 3rem;
    }

    .artwork-info h1 {
        font-size: 1.8rem;
    }

    .artwork-info {
        padding: 2.5rem;
    }

    .info-section p {
        font-size: 1.05rem;
    }

    .image-zoom-container {
        max-width: 700px;
        min-width: 500px;
    }

    .magnified-view {
        width: 700px;
        height: 700px;
    }
}

@media (max-width: 1599px) {
    .detail-container {
        grid-template-columns: 280px 1fr;
        gap: 2rem;
    }

    .image-zoom-container {
        max-width: 100%;
        min-width: 550px;
    }

    .magnified-view {
        display: none;
    }
}

@media (max-width: 1400px) {
    .detail-container {
        grid-template-columns: 280px 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .image-zoom-container {
        max-width: 100%;
        min-width: 500px;
    }

    .magnified-view {
        display: none;
    }

    .nav-arrow {
        width: 55px;
        height: 55px;
        min-width: 55px;
    }
}

@media (max-width: 1024px) {
    .detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }

    .artwork-info {
        position: relative;
        top: 0;
    }

    .artwork-info h1 {
        font-size: 1.8rem;
    }

    .image-detail-wrapper {
        position: relative;
        top: 0;
        justify-content: center;
    }

    .image-zoom-container {
        max-width: 100%;
        min-width: 0;
    }

    .magnified-view {
        position: relative;
        top: auto;
        margin: 0 auto;
        width: 100%;
        max-width: 600px;
        height: auto;
        aspect-ratio: 1;
    }

    .nav-arrow {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .header-logo img {
        max-width: 150px;
    }

    .main-nav {
        gap: 1rem;
    }

    .main-nav a {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    .detail-page header {
        flex-direction: column;
        gap: 1rem;
    }

    .detail-main {
        padding: 1rem;
    }

    .image-detail-wrapper {
        gap: 0.5rem;
    }

    .image-zoom-container {
        max-width: 100%;
    }

    .artwork-info {
        padding: 1.5rem;
    }

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

    .nav-arrow {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }

    .zoom-controls {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .zoom-controls label {
        font-size: 0.8rem;
    }

    .zoom-controls input[type="range"] {
        width: 120px;
    }

    .zoom-controls span {
        font-size: 0.8rem;
        min-width: 35px;
    }

    .about-container {
        padding: 2rem;
    }

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

    .about-intro .lead {
        font-size: 1.1rem;
    }

    .about-section h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .image-container {
        height: 350px;
    }

    .header-logo img {
        max-width: 120px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .main-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .main-nav a {
        padding: 0.5rem;
    }

    .image-detail-wrapper {
        gap: 0.25rem;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .zoom-controls {
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.5rem;
        align-items: center;
    }

    .zoom-controls input[type="range"] {
        width: 100px;
    }

    .about-container {
        padding: 1.5rem;
    }

    .about-intro h2 {
        font-size: 1.75rem;
    }

    .about-intro .lead {
        font-size: 1rem;
    }

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

    .contact-section {
        padding: 1.5rem;
    }
}
