/* style.css */

/* Basic Reset & Font */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; font-size: 16px; }
body { font-family: 'Inter', sans-serif; background-color: #0a0a0a; color: #e0e0e0; line-height: 1.6; font-weight: 400; display: flex; flex-direction: column; min-height: 100vh; height: 100%; overflow: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Navbar */
.navbar { background-color: rgba(10, 10, 10, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 0.75rem 0; position: sticky; top: 0; z-index: 1000; width: 100%; flex-shrink: 0; }
.nav-container { margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; position: relative; }
.nav-logo { font-size: 1.75rem; font-weight: 700; color: #ffffff; text-decoration: none; display: flex; align-items: center; gap: 0.6rem; }
.logo-icon { height: 40px; width: auto; display: block; }
.nav-menu { list-style: none; display: flex; gap: 35px; align-items: center; }
.nav-link { color: #d0d0d0; text-decoration: none; font-weight: 500; transition: color 0.3s ease; display: inline-flex; align-items: center; font-size: 1rem; }
.nav-link:hover { color: #ffffff; }
.nav-link .fa-github { font-size: 1.9rem; line-height: 1; transition: color 0.3s ease, transform 0.3s ease; }
.nav-link:hover .fa-github { color: #f34c4c; transform: scale(1.1); }

/* Portfolio Carousel Section */
.portfolio-carousel { width: 100%; flex-grow: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: #0a0a0a; position: relative; }

/* Swiper Styles */
.swiper { width: 100%; height: 100%; position: static; }
.swiper-wrapper {
    /* align-items: center; */ /* CHANGE: From center */
    align-items: stretch; /* CHANGE: To stretch */
    height: 100%;
    display: flex;
}
.swiper-slide { height: 100%; display: flex; justify-content: center; align-items: center; overflow: hidden; flex-shrink: 0; width: auto; position: relative; transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease; }

/* Non-active slide styling (Desktop) */
@media (min-width: 769px) {
    .swiper-slide:not(.swiper-slide-active) { opacity: 0.25; }
    .swiper-no-transition .swiper-slide:not(.swiper-slide-active) { transition: none; opacity: 0.5; }
}

/* Content wrapper */
.slide-content-wrapper { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; margin: 0 auto; overflow: hidden; position: relative; border-radius: 8px; transition: max-width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }

/* Comparison slider specific styles */
.slide-content-wrapper img-comparison-slider { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; aspect-ratio: var(--aspect-ratio, 3 / 2); cursor: col-resize; border-radius: 8px; }
.slide-content-wrapper img-comparison-slider img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; box-sizing: border-box; display: block; max-width: none; max-height: none; user-select: none; -webkit-user-drag: none; border-radius: 0; }

/* Styles for REGULAR images directly inside the wrapper */
.slide-content-wrapper > img { display: block; width: 100%; height: 100%; object-fit: contain; max-width: 100%; max-height: 100%; user-select: none; -webkit-user-drag: none; border-radius: 8px; }

/* Base Button Styles */
.button { display: inline-block; text-decoration: none; border-radius: 6px; font-weight: 500; text-align: center; cursor: pointer; transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.25s ease-in-out; color: #ffffff !important; padding: 12px 28px; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 3px 6px rgba(0,0,0,0.2); text-shadow: none; font-size: 0.95rem; opacity: 1; }
.button.store-button { background-color: #f34c4c; border-color: #f34c4c; }
.button.store-button:not(.disabled):hover { background-color: #f56969; border-color: #f56969; box-shadow: 0 4px 12px rgba(243, 76, 76, 0.4); opacity: 1; }
.button.store-button.button-fading { opacity: 0; pointer-events: none; }
.button.store-button:active { box-shadow: 0 2px 4px rgba(0,0,0,0.2); background-color: #e03a3a; border-color: #e03a3a; }
.button.store-button.disabled { background-color: #555; border-color: #555; cursor: not-allowed; pointer-events: none; transform: none; box-shadow: none; opacity: 0.6; }

/* Footer Asset Button Specific Positioning (Desktop) */
.footer-asset-button { position: absolute; top: 50%; left: calc(50%); transform: translate(-50%, -50%); z-index: 5; padding: 10px 20px; font-size: 0.9rem; }
.footer-asset-button.disabled:hover { transform: translate(-50%, -50%); }

/* Swiper Navigation Styles */
:root { --swiper-navigation-color: #ffffff; --swiper-navigation-size: 38px; --swiper-theme-color: #f34c4c; --aspect-ratio: 3 / 2; }
.swiper-button-next, .swiper-button-prev { color: var(--swiper-navigation-color) !important; background-color: rgba(10, 10, 10, 0.5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); padding: 22px; border-radius: 50%; width: var(--swiper-navigation-size); height: var(--swiper-navigation-size); transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease; top: 50%; transform: translateY(-50%); z-index: 10; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: calc(var(--swiper-navigation-size) * 0.4) !important; font-weight: 900; }
.swiper-button-next:hover, .swiper-button-prev:hover { background-color: rgba(0, 0, 0, 0.7); transform: translateY(-50%) scale(1.1); }
.swiper-button-prev { left: 30px; } .swiper-button-next { right: 30px; }
.swiper-button-disabled { opacity: 0 !important; pointer-events: none !important; cursor: default !important; }

/* Footer */
footer { background-color: rgba(10, 10, 10, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #e0e0e0; padding: 0.9rem 0; flex-shrink: 0; z-index: 10; position: relative; }
.footer-container { margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; position: relative; min-height: 55px; }
.footer-left { text-align: left; flex-basis: auto; flex-grow: 1; margin-right: auto; z-index: 2; position: relative; }
.footer-right { text-align: right; flex-basis: auto; margin-left: 20px; z-index: 2; position: relative; opacity: 1; transition: opacity 0.25s ease-in-out; }
.footer-right-fading { opacity: 0; pointer-events: none; }
#product-title { font-size: 1.5rem; color: #ffffff; margin-bottom: 0px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 200px); opacity: 1; transition: opacity 0.25s ease-in-out; }
#product-title.title-fading { opacity: 0; }
#email-link { color: #b0b0b0; text-decoration: none; font-weight: normal; font-size: 0.9rem; word-break: break-all; transition: color 0.3s ease; }
#email-link:hover { color: var(--swiper-theme-color); }
.footer-right p { font-size: 0.85em; color: #a0a0a0; margin-bottom: 2px; line-height: 1.4; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    html { font-size: 15px; }
    body { height: auto; min-height: 100vh; overflow: auto; }
    .navbar, footer { background-color: #0a0a0a; backdrop-filter: none; padding: 0.8rem 0; }
    .nav-container, .footer-container { max-width: none !important; padding: 0 15px; }
    .nav-menu { display: none; }
    .portfolio-carousel { height: auto; min-height: 40vh; padding: 0; flex-grow: 0; align-items: stretch; }
    .swiper, .swiper-wrapper, .swiper-slide { height: auto; }
    .swiper-wrapper { align-items: stretch; } /* Keep stretch on mobile too if needed */
    .swiper-slide:not(.swiper-slide-active) { opacity: 1 !important; transform: none !important; transition: none !important; }
    .slide-content-wrapper { height: auto; max-width: none !important; border-radius: 0; box-shadow: none; }
    .slide-content-wrapper img-comparison-slider { height: auto; max-height: 70vh; aspect-ratio: var(--aspect-ratio, auto); border-radius: 0; }
    .slide-content-wrapper > img { height: auto; max-height: 70vh; border-radius: 0; }
    .footer-container { flex-direction: column; align-items: center; text-align: center; gap: 12px; position: static; min-height: auto; }
    .footer-left, .footer-right { text-align: center; flex-basis: auto; width: 100%; margin: 0; z-index: auto; position: static; }
    #product-title { font-size: 1.3rem; max-width: 90%; margin: 0 auto; white-space: normal; text-align: center; }
    .footer-asset-button { position: static; transform: none; margin-top: 8px; margin-bottom: 8px; padding: 12px 25px; order: 1; width: auto; max-width: 70%; left: auto !important; }
    .footer-left { order: 0; } .footer-right { order: 2; }
    .swiper-button-next, .swiper-button-prev { display: none !important; }
}