@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syncopate:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Orbitron:wght@400;500;700;900&display=swap');

:root {
    --primary: #1E293B;
    /* Slate 800 */
    scroll-behavior: smooth;
    --secondary: #334155;
    /* Slate 700 */
    --accent: #DC2626;
    /* Red 600 */
    --accent-hover: #B91C1C;
    /* Red 700 */
    --bg-dark: #0F172A;
    /* Slate 900 */
    --bg-card: #1E293B;
    --text-main: #F8FAFC;
    /* Slate 50 */
    --text-muted: #94A3B8;
    /* Slate 400 */

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h2 {
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.7rem;
    }
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    background-color: var(--accent);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(220, 38, 38, 0.4);
}

/* Animated Gradient Border Button */
.btn-gradient-border {
    position: relative;
    background: transparent;
    border: none;
    z-index: 1;
}

.btn-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(90deg, #DC2626, #FCA5A5, #DC2626, #B91C1C, #DC2626);
    background-size: 300% 100%;
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: gradient-rotate 3s linear infinite;
    z-index: -1;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

@keyframes gradient-rotate {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

.btn-gradient-border:hover {
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.3s ease, padding 0.3s ease;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 36px;
    color: white;
}

.logo-wrapper:hover .logo-icon {
    transform: scale(1.05);
    transition: transform 0.3s;
}

/* Continuous lightning animation */
.lightning-bolt {
    animation: lightning-pulse 2s ease-in-out infinite;
}

@keyframes lightning-pulse {

    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 2px #DC2626);
    }

    50% {
        opacity: 0.6;
        filter: drop-shadow(0 0 8px #DC2626) drop-shadow(0 0 12px #DC2626);
    }
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-phone {
    font-weight: 700;
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-phone:hover {
    background: var(--accent);
    color: white !important;
}

.desktop-nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: white;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
}

.mobile-nav-links a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-nav-links a {
        font-size: 1rem;
    }
}

/* Sections */
section {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: url('images/hero_bg.jpg') no-repeat center center/cover;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-left: 2rem;
    border-left: 4px solid var(--accent);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(90deg, #fff, #94a3b8, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hero-gradient 3s linear infinite;
}

@keyframes hero-gradient {
    to {
        background-position: 200% center;
    }
}

.hero p {
    font-size: 1.25rem;
    color: #cfcfcf;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

@media (max-width: 768px) {
    .hero-content {
        padding-left: 1rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.chevron {
    width: 20px;
    height: 20px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(45deg);
    opacity: 0;
    animation: chevron-pulse 2s infinite;
}

.chevron:nth-child(1) {
    animation-delay: 0s;
}

.chevron:nth-child(2) {
    margin-top: -10px;
    animation-delay: 0.2s;
}

.chevron:nth-child(3) {
    margin-top: -10px;
    animation-delay: 0.4s;
}

@keyframes chevron-pulse {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Premium Service Cards with Backgrounds */
.service-card-premium {
    position: relative;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.service-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.1) 0%, rgba(15, 23, 42, 0.98) 100%);
    transition: background 0.4s;
}

.service-card-premium:hover .service-card-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
}

.service-card-content h3 {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.service-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(220, 38, 38, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .service-card-content {
        padding: 1rem;
    }

    .service-card-content h3 {
        font-size: 1rem;
    }
}

/* Contact / Feedback */
.feedback-form {
    background: var(--bg-card);
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    border-top: 2px solid var(--accent);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Catalog Preview */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .catalog-grid {
        gap: 1rem;
    }
}

.product-card {
    background: var(--bg-card);
    border-radius: 4px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
    padding: 1.5rem;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.product-card:hover::before {
    opacity: 1;
}

.product-title {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-meta {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.product-details {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.product-price {
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    background-color: var(--accent-hover);
    padding: 0.1rem 0.2rem;
    border-radius: 4px;
}

.product-actions {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.product-icon-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 4px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
    flex: 0 0 34px;
}

.product-icon-btn:hover,
.product-icon-btn:focus {
    outline: none;
    transform: translateY(-1px);
}

.product-icon-btn.is-disabled {
    cursor: default;
}

.product-icon-btn.is-disabled:hover,
.product-icon-btn.is-disabled:focus {
    transform: none;
}

.product-icon-btn img {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.86;
    transition: filter 0.3s, opacity 0.3s;
}

.product-icon-btn:hover img,
.product-icon-btn:focus img {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255, 255, 255, 0.28));
}

.product-icon-btn.is-disabled img {
    opacity: 0.32;
}

.product-info-tooltip {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: min(280px, 72vw);
    background: #020617;
    color: var(--text-main);
    border: 1px solid rgba(220, 38, 38, 0.45);
    border-radius: 4px;
    padding: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 20;
}

.product-info-tooltip::after {
    content: '';
    position: absolute;
    right: 12px;
    bottom: -6px;
    width: 10px;
    height: 10px;
    background: #020617;
    border-right: 1px solid rgba(220, 38, 38, 0.45);
    border-bottom: 1px solid rgba(220, 38, 38, 0.45);
    transform: rotate(45deg);
}

.product-info-btn:hover .product-info-tooltip,
.product-info-btn:focus .product-info-tooltip,
.product-info-btn:focus-within .product-info-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.modal-open {
    overflow: hidden;
}

.catalog-media-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(8px);
}

.catalog-media-modal.active {
    display: flex;
}

.catalog-media-dialog {
    width: min(980px, 100%);
    height: min(720px, 86vh);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 3rem 4.5rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.catalog-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    background: rgba(30, 41, 59, 0.85);
    color: var(--text-main);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.catalog-modal-close:hover,
.catalog-modal-close:focus {
    border-color: var(--accent);
    color: var(--accent);
    outline: none;
}

.catalog-media-stage {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Info modal (service description) should scroll on mobile */
#catalogInfoModal .catalog-media-dialog {
    align-items: flex-start;
    justify-content: flex-start;
}

#catalogInfoModal .catalog-media-stage {
    height: auto;
    min-height: 0;
    max-height: calc(86vh - 6.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.25rem;
}

.catalog-media-item {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

video.catalog-media-item {
    width: 100%;
    height: 100%;
}

.catalog-media-message {
    color: var(--text-muted);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.catalog-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    background: rgba(30, 41, 59, 0.85);
    color: var(--text-main);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    z-index: 2;
}

.catalog-slider-btn:hover,
.catalog-slider-btn:focus {
    background: var(--accent);
    border-color: var(--accent);
    outline: none;
}

.catalog-slider-prev {
    left: 1rem;
}

.catalog-slider-next {
    right: 1rem;
}

.catalog-media-counter {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .product-footer {
        gap: 0.75rem;
    }

    .product-actions {
        gap: 0.4rem;
        margin-left: 0.5rem;
    }

    .product-icon-btn {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .product-info-tooltip {
        right: -42px;
        width: min(260px, 80vw);
    }

    .catalog-media-modal {
        padding: 0.75rem;
    }

    .catalog-media-dialog {
        height: 82vh;
        padding: 3.5rem 0.75rem 3rem;
    }

    #catalogInfoModal .catalog-media-stage {
        max-height: calc(82vh - 6.5rem);
    }

    .catalog-slider-btn {
        top: auto;
        bottom: 0.75rem;
        transform: none;
        width: 38px;
        height: 38px;
    }

    .catalog-slider-prev {
        left: 0.75rem;
    }

    .catalog-slider-next {
        right: 0.75rem;
    }
}

/* Footer */
footer {
    background: #020617;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    footer {
        margin-top: 2rem;
    }
}

/* Portfolio / Works */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

/* Corner Animation Elements */
.portfolio-item::before,
.portfolio-item::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: 0;
    transition: all 0.4s var(--ease-out);
    z-index: 10;
    pointer-events: none;
}

.portfolio-item::before {
    top: 15px;
    left: 15px;
    border-top: 3px solid var(--accent);
    border-left: 3px solid var(--accent);
}

.portfolio-item::after {
    bottom: 15px;
    right: 15px;
    border-bottom: 3px solid var(--accent);
    border-right: 3px solid var(--accent);
}

/* Additional corners via inner element */
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.portfolio-item img::before {
    content: '';
}

.portfolio-item:hover::before {
    opacity: 1;
    top: 10px;
    left: 10px;
}

.portfolio-item:hover::after {
    opacity: 1;
    bottom: 10px;
    right: 10px;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Bento Grid Classes */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--accent);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Slider for Portfolio */
@media (max-width: 768px) {
    .portfolio-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .portfolio-container::-webkit-scrollbar {
        display: none;
    }

    .portfolio-item {
        flex: 0 0 85%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        height: 280px;
        grid-column: auto;
        grid-row: auto;
    }
}

/* Slider Progress Bar */
.slider-progress-container {
    display: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.slider-progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 12.5%;
    transition: width 0.15s ease-out;
}

@media (max-width: 768px) {
    .slider-progress-container {
        display: block;
    }
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.3s;
    border-radius: 4px;
}

.page-btn:hover,
.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Catalog Filters */
.catalog-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: 4px;
    min-width: 150px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--accent);
    outline: none;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
}

.filter-btn-reset {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.filter-btn-reset:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Mobile Catalog Filters */
@media (max-width: 768px) {
    .catalog-filters {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-select {
        width: 100%;
        min-width: unset;
    }

    .filter-btn,
    .filter-btn-reset {
        width: 100%;
        text-align: center;
    }

    .pagination-container {
        gap: 0.25rem;
    }

    .page-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Reviews */
/* Reviews Slider */
.reviews-slider-wrapper {
    position: relative;
    padding: 0 3rem;
    max-width: 100%;
    margin: 0 auto;
}

.reviews-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reviews-slider .stars {
    color: orange;
}

.reviews-slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 320px;
    max-width: 320px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-btn:hover {
    background: var(--accent);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.review-author {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 600;
}

/* Mobile Reviews Slider */
@media (max-width: 768px) {
    .reviews-slider-wrapper {
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .reviews-slider {
        gap: 1rem;
        padding-bottom: 1rem;
        order: 1;
    }

    .review-card {
        min-width: 85%;
        max-width: 85%;
    }

    .slider-btn {
        position: static;
        transform: none;
    }

    .slider-controls-mobile {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
        order: 2;
    }

    .feedback-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-row {
        gap: 1rem;
    }
}

/* Slider Controls Container (for mobile) */
.slider-controls-mobile {
    display: none;
}

/* Contacts */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contacts-map iframe {
    width: 100%;
    min-height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .contacts-grid {
        grid-template-columns: 34% 62%;
        align-items: start;
        justify-content: space-between;
    }
}

/* PixSell Banner */
.pixsell-section {
    padding: 1rem 0 4rem;
}

.pixsell-container {
    display: flex;
    justify-content: center;
}

.pixsell-banner {
    position: relative;
    width: 100%;
    max-width: 900px;
    min-height: 200px;
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #ffffff;
}

.pixsell-banner-glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, rgba(59, 130, 246, 0.2) 40%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    border-radius: 50%;
    animation: pixsell-move-glow 6s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes pixsell-move-glow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20%, 30%) scale(1.2);
    }
}

.pixsell-banner-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.pixsell-logo {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0;
    color: #ffffff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    font-family: var(--font-body);
    text-transform: none;
}

.pixsell-ai-text {
    background: linear-gradient(to right, #2dd4bf, #3b82f6, #9333ea);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    margin-left: 4px;
    position: relative;
}

.pixsell-sparkle {
    color: #a855f7;
    font-size: 0.7em;
    margin-left: 2px;
    transform: translateY(-4px);
    display: inline-block;
    animation: pixsell-pulse-sparkle 2s infinite alternate ease-in-out;
    font-style: normal;
}

@keyframes pixsell-pulse-sparkle {
    0% {
        transform: translateY(-4px) scale(0.9) rotate(0deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-4px) scale(1.2) rotate(15deg);
        opacity: 1;
    }
}

.pixsell-headline {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #f8fafc;
    margin-bottom: 6px;
    letter-spacing: 0;
    text-transform: none;
    max-width: 280px;
}

.pixsell-highlight {
    color: #38bdf8;
    position: relative;
    display: inline-block;
}

.pixsell-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(56, 189, 248, 0.4);
    border-radius: 2px;
}

.pixsell-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.4;
    margin-bottom: 12px;
    max-width: 280px;
}

.pixsell-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 16px 24px;
    border-radius: 8px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 14px 0 rgba(0, 0, 0, 0.5);
    animation: pixsell-btn-breathe 3s ease-in-out infinite;
}

.pixsell-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, #2dd4bf, #3b82f6, #9333ea, #2dd4bf);
    background-size: 300% 100%;
    z-index: -1;
    border-radius: 9px;
    animation: pixsell-border-flow 4s linear infinite;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.pixsell-btn::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: #020617;
    border-radius: 7px;
    z-index: -1;
    transition: background 0.3s ease;
}

.pixsell-banner:hover .pixsell-btn {
    animation: none;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px -4px rgba(59, 130, 246, 0.5);
}

.pixsell-banner:hover .pixsell-btn::before {
    opacity: 1;
    animation-duration: 2s;
}

.pixsell-banner:hover .pixsell-btn::after {
    background: #0f172a;
}

@keyframes pixsell-border-flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

@keyframes pixsell-btn-breathe {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-3px) scale(1.01);
    }
}

.pixsell-banner-visual {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.pixsell-slider,
.pixsell-slide,
.pixsell-img-wrapper {
    position: absolute;
    inset: 0;
}

.pixsell-slide {
    opacity: 0;
    pointer-events: none;
}

.pixsell-slide.active {
    opacity: 1;
    z-index: 2;
}

.pixsell-slide.prev {
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.pixsell-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.pixsell-slide-after--1 img {
    object-position: center 60%;
}

.pixsell-slide-before--2 img {
    object-position: center 50%;
}

.pixsell-slide-after--2 img {
    object-position: center 60%;
}

.pixsell-slide-before--3 img {
    object-position: center 40%;
}

.pixsell-img-before {
    z-index: 1;
}

.pixsell-img-after {
    z-index: 2;
    clip-path: inset(0 100% 0 0);
}

.pixsell-slide.active .pixsell-img-after {
    animation: pixsell-slide-reveal 4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes pixsell-slide-reveal {

    0%,
    15% {
        clip-path: inset(0 100% 0 0);
    }

    85%,
    100% {
        clip-path: inset(0 0 0 0);
    }
}

.pixsell-scan-line {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 2px;
    background: #fff;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.5);
    opacity: 0;
}

.pixsell-slide.active .pixsell-scan-line {
    animation: pixsell-line-move 4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes pixsell-line-move {

    0%,
    15% {
        right: 100%;
        opacity: 0;
    }

    16%,
    84% {
        opacity: 1;
    }

    85%,
    100% {
        right: 0;
        opacity: 0;
    }
}

.pixsell-badge {
    position: absolute;
    bottom: 16px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

.pixsell-badge-before {
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    z-index: 1;
}

.pixsell-badge-after {
    left: 24px;
    background: rgba(255, 255, 255, 0.85);
    color: #000;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
}

.pixsell-slide.active .pixsell-badge-after {
    animation: pixsell-fade-in-badge 4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes pixsell-fade-in-badge {

    0%,
    40% {
        opacity: 0;
        transform: translateY(5px);
    }

    50%,
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 600px) {
    .pixsell-banner {
        flex-direction: row;
        height: 220px;
    }

    .pixsell-banner-content {
        padding: 32px 40px;
    }

    .pixsell-headline {
        font-size: 1.5rem;
        max-width: 320px;
    }

    .pixsell-subtitle {
        font-size: 0.9rem;
        max-width: 320px;
    }

    .pixsell-banner-visual {
        width: 340px;
        height: 100%;
        flex-shrink: 0;
    }

    .pixsell-banner-visual::before {
        content: '';
        position: absolute;
        top: -25px;
        left: -20px;
        width: 40px;
        height: 120%;
        background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
        transform: rotate(10deg);
        z-index: 5;
    }
}

@media (max-width: 768px) {
    .pixsell-section {
        padding: 0 0 2rem;
    }
}
