/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #111827 100%);
    min-height: 100vh;
}

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

/* Header Styles */
.site-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(20, 184, 166, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.header-logo {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.header-logo:hover {
    opacity: 0.8;
}

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

.header-cart {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-cart .cart-info {
    color: #cbd5e1;
    font-size: 0.9rem;
    text-align: right;
}

.header-cart .cart-count {
    color: #14b8a6;
    font-weight: 600;
    font-size: 1rem;
}

.header-cart .cart-total {
    color: #10b981;
    font-weight: 600;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

/* Hero Section */
.hero {
    padding: 60px 0 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(37, 181, 243, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    grid-column: 1 / 3;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #e2e8f0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-video {
    margin: 2rem 0;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta.primary {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #065f46 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.4);
    animation: pulse 2s infinite;
}

.hero-cta.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.hero-cta.primary:hover::before {
    left: 100%;
}

.hero-cta.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.5);
}

.hero-cta.secondary {
    background: transparent;
    color: #14b8a6;
    border: 2px solid #14b8a6;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.2);
}

.hero-cta.secondary:hover {
    background: rgba(20, 184, 166, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.3);
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(20, 184, 166, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(20, 184, 166, 0.6); }
    100% { box-shadow: 0 4px 20px rgba(20, 184, 166, 0.4); }
}

.hero-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.hero-card {
    background: rgba(20, 184, 166, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(20, 184, 166, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.hero-card:hover::before {
    transform: translateX(100%);
}

.hero-card:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.15);
}

.hero-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease;
}

.hero-card:hover .hero-card-icon {
    transform: scale(1.1);
}

.hero-card h3 {
    color: #14b8a6;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    margin: 2rem 0;
    border: 2px solid rgba(20, 184, 166, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-container:hover {
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 5px 20px rgba(20, 184, 166, 0.2);
}

/* Custom Form Section */
.custom-form-section {
    padding: 4rem 0;
    background: rgba(20, 184, 166, 0.03);
    position: relative;
}

.custom-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.custom-form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.custom-form-container h3 {
    color: #14b8a6;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.custom-form-container p {
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.custom-form .description-field.full-width {
    width: 100%;
    grid-column: 1 / -1;
}

.custom-form .description-field.full-width textarea {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
}

.custom-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.custom-form input,
.custom-form textarea {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.custom-form input:focus,
.custom-form textarea:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
    background: rgba(0, 0, 0, 0.4);
}

.custom-form input::placeholder,
.custom-form textarea::placeholder {
    color: #94a3b8;
}

.custom-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.description-field {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}

/* Process Section */
.process-section {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.process-header {
    text-align: center;
    margin-bottom: 4rem;
}

.process-header h2 {
    color: #14b8a6;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.process-header p {
    color: #94a3b8;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.process-step {
    background: rgba(20, 184, 166, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(20, 184, 166, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.process-step:hover::before {
    opacity: 1;
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.15);
}


.process-step h3 {
    color: #14b8a6;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.process-step p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.process-support {
    background: rgba(20, 184, 166, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(20, 184, 166, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.process-support h3 {
    color: #14b8a6;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.process-support p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 1rem;
}

/* Filters Section */
.filters {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.filters-title {
    color: #14b8a6;
    font-size: 1.6rem;
    font-weight: 600;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 10px;
    padding: 6px;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.view-btn {
    background: none;
    border: none;
    color: #94a3b8;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.view-btn.active {
    background: rgba(20, 184, 166, 0.3);
    color: #14b8a6;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.2);
}

.view-btn:hover:not(.active) {
    background: rgba(20, 184, 166, 0.15);
    color: #cbd5e1;
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.filter-group {
    background: rgba(20, 184, 166, 0.05);
    padding: 1.8rem;
    border-radius: 16px;
    border: 1px solid rgba(20, 184, 166, 0.15);
    transition: all 0.3s ease;
}

.filter-group:hover {
    border-color: rgba(20, 184, 166, 0.25);
    background: rgba(20, 184, 166, 0.08);
}

.filter-group label {
    display: block;
    color: #14b8a6;
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.1), transparent);
    transition: left 0.3s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active,
.filter-btn:hover {
    background: rgba(20, 184, 166, 0.2);
    border-color: #14b8a6;
    color: #14b8a6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

/* Category filter colors */
#categoryFilters .filter-btn[data-filter="sprzedaz"].active {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #3b82f6;
}

#categoryFilters .filter-btn[data-filter="marketing"].active {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    color: #a855f7;
}

#categoryFilters .filter-btn[data-filter="fakturowanie"].active {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #22c55e;
}

#categoryFilters .filter-btn[data-filter="pozyskanie"].active {
    background: rgba(249, 115, 22, 0.2);
    border-color: #f97316;
    color: #f97316;
}

#categoryFilters .filter-btn[data-filter="zamowienia"].active {
    background: rgba(236, 72, 153, 0.2);
    border-color: #ec4899;
    color: #ec4899;
}

#categoryFilters .filter-btn[data-filter="oferty"].active {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #f59e0b;
}

#categoryFilters .filter-btn[data-filter="magazyn"].active {
    background: rgba(139, 69, 19, 0.2);
    border-color: #8b4513;
    color: #8b4513;
}

#categoryFilters .filter-btn[data-filter="hr"].active {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: #6366f1;
}

/* System filter colors */
#systemFilters .filter-btn[data-filter="vtiger"].active {
    background: rgba(220, 38, 127, 0.2);
    border-color: #dc267f;
    color: #dc267f;
}

#systemFilters .filter-btn[data-filter="yetiforce"].active {
    background: rgba(30, 64, 175, 0.2);
    border-color: #1e40af;
    color: #1e40af;
}

#systemFilters .filter-btn[data-filter="notion"].active {
    background: rgba(0, 0, 0, 0.2);
    border-color: #333;
    color: #333;
}

#systemFilters .filter-btn[data-filter="clickup"].active {
    background: rgba(124, 58, 237, 0.2);
    border-color: #7c3aed;
    color: #7c3aed;
}

#systemFilters .filter-btn[data-filter="inne"].active {
    background: rgba(107, 114, 128, 0.2);
    border-color: #6b7280;
    color: #6b7280;
}

/* Catalog Section */
.catalog-section {
    padding: 4rem 0 5rem;
    background: rgba(20, 184, 166, 0.02);
}

.catalog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.catalog-header h2 {
    color: #14b8a6;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.catalog-description {
    color: #94a3b8;
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Filters Section */
.filters-section {
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.filters-content {
    padding: 1.5rem;
    display: block;
}

.filter-select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(20, 184, 166, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.filter-select option {
    background: #1e293b;
    color: white;
    padding: 0.5rem;
}

.search-group {
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(20, 184, 166, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.search-input::placeholder {
    color: #94a3b8;
}

.apps-header {
    margin-bottom: 2.5rem;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-count {
    color: #94a3b8;
    font-size: 1rem;
}

.active-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#filterInfo {
    color: #94a3b8;
    font-size: 0.9rem;
}

.clear-filters-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Grid View */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.app-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(20, 184, 166, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 0.4);
}

.app-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.1) rotate(5deg);
}

.app-card h3 {
    color: #14b8a6;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    z-index: 1;
    position: relative;
}

.app-description {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    z-index: 1;
    position: relative;
}

.app-labels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.app-labels-column {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.system-label {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.process-label {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(34, 197, 94, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    z-index: 1;
    position: relative;
}

.app-tag {
    background: rgba(20, 184, 166, 0.2);
    color: #14b8a6;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid rgba(20, 184, 166, 0.3);
    transition: all 0.3s ease;
}

.system-tag {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.3);
}

.process-tag {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.demo-button-container {
    margin-top: 1rem;
    text-align: center;
}

.btn-demo-inline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-demo-inline:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #9333ea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.tag {
    background: rgba(20, 184, 166, 0.2);
    color: #14b8a6;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(20, 184, 166, 0.3);
    transition: all 0.3s ease;
}

.app-card:hover .tag {
    background: rgba(20, 184, 166, 0.3);
    border-color: rgba(20, 184, 166, 0.5);
}

.app-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 1.5rem;
    z-index: 1;
    position: relative;
}

.app-actions {
    display: flex;
    gap: 1rem;
    z-index: 1;
    position: relative;
}

/* List View */
.apps-list {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.apps-list.active {
    display: flex;
}

.apps-grid.hidden {
    display: none;
}

.app-list-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.app-list-item:hover {
    border-color: rgba(20, 184, 166, 0.4);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.15);
}

.app-list-icon {
    font-size: 2.8rem;
    transition: transform 0.3s ease;
}

.app-list-item:hover .app-list-icon {
    transform: scale(1.1);
}

.app-list-content h3 {
    color: #14b8a6;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.app-list-content p {
    color: #94a3b8;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.app-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.app-list-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #10b981;
    text-align: center;
}

.app-list-actions {
    display: flex;
    gap: 0.8rem;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

.btn-primary.selected {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary.selected:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #14b8a6;
    border: 2px solid #14b8a6;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: rgba(20, 184, 166, 0.1);
    border-color: #10b981;
    color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.2);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: #1e293b;
    border: 2px solid rgba(20, 184, 166, 0.3);
    border-radius: 20px;
    width: 70vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid rgba(20, 184, 166, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20, 184, 166, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.modal-header-left {
    flex: 1;
}

.modal-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-actions-header {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.modal-header h2 {
    color: #14b8a6;
    font-size: 1.8rem;
    font-weight: 600;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header-actions .btn-demo,
.modal-header-actions .btn-select,
.modal-header-actions .btn-deselect {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
}

.modal-header-actions .btn-demo {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.modal-header-actions .btn-demo:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.modal-header-actions .btn-select {
    background: rgba(20, 184, 166, 0.9);
    color: white;
    border: 1px solid #14b8a6;
}

.modal-header-actions .btn-select:hover {
    background: #14b8a6;
    transform: translateY(-1px);
}

.modal-header-actions .btn-deselect {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: 1px solid #ef4444;
}

.modal-header-actions .btn-deselect:hover {
    background: #ef4444;
    transform: translateY(-1px);
}

.modal-close {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.1);
}

.modal-body {
    padding: 2.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-body h4 {
    color: #14b8a6;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-body p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.gallery-item {
    width: 100%;
    height: 140px;
    background: #374151;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.9rem;
    border: 1px solid rgba(20, 184, 166, 0.2);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: rgba(20, 184, 166, 0.4);
    background: #4b5563;
}


/* Order Form */
.order-form {
    display: none;
    background: #1e293b;
    border: 2px solid rgba(20, 184, 166, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.order-form.active {
    display: block;
    animation: slideIn 0.3s ease;
}

.order-form h3 {
    color: #14b8a6;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

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

.form-group label {
    display: block;
    color: #14b8a6;
    margin-bottom: 0.8rem;
    font-weight: 500;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(20, 184, 166, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group textarea {
    min-height: 120px;
    line-height: 1.5;
}

.order-summary {
    background: rgba(20, 184, 166, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.order-summary h4 {
    color: #14b8a6;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #cbd5e1;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

.order-item:last-child {
    border-bottom: none;
}

.order-total-final {
    font-weight: 600;
    font-size: 1.3rem;
    color: #10b981;
    border-top: 2px solid rgba(20, 184, 166, 0.3);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Form Button Styles */
.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-text {
        grid-column: 1;
        text-align: center;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .custom-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 30px 0;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .video-container {
        height: 250px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .app-card {
        padding: 1.5rem;
    }


    .filter-buttons {
        justify-content: center;
    }

    .filters-header {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .app-list-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .app-list-actions {
        justify-content: center;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-step {
        padding: 2rem;
    }

    .process-support {
        padding: 2rem;
    }

    .modal-content {
        width: 85vw;
        height: 95vh;
        max-width: none;
    }

    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .gallery-item {
        height: 100px;
        font-size: 0.8rem;
    }

    .modal-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .modal-gallery-grid .gallery-item {
        height: 110px;
    }

    .order-form {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .form-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

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

    .hero-card {
        padding: 1rem;
    }

    .hero-card-icon {
        font-size: 2rem;
    }

    .custom-form-container {
        padding: 1.5rem;
    }

    .custom-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Mobile header cart - show only icon and count */
    .header-cart {
        gap: 0.5rem;
    }

    .header-cart .cart-info {
        font-size: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .header-cart .cart-info::before {
        content: "🛒";
        font-size: 1.2rem;
        display: inline-block;
    }

    .header-cart .cart-count {
        font-size: 0.9rem;
        background: #14b8a6;
        color: white;
        border-radius: 50%;
        min-width: 20px;
        min-height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
    }

    .header-cart .cart-total {
        display: none;
    }

    /* Keep CTA buttons side by side on mobile */
    .hero-cta-group {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .hero-cta {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    .process-header h2 {
        font-size: 1.8rem;
    }

    .process-header p {
        font-size: 1rem;
    }

    .filters-title {
        font-size: 1.3rem;
    }

    .app-card h3 {
        font-size: 1.3rem;
    }

    .app-icon {
        font-size: 2.5rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #14b8a6;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
button:focus,
input:focus,
textarea:focus,
.filter-btn:focus,
.view-btn:focus {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .modal,
    .order-form {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero,
    .process-section,
    .custom-form-section {
        background: white;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #0d9488 0%, #065f46 100%);
    box-shadow: 0 6px 25px rgba(20, 184, 166, 0.6);
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: translateY(0) scale(0.95);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.3);
    z-index: 2000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    min-width: 300px;
    max-width: 400px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.notification-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.notification.notification-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.notification.notification-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Modal app details styles */
.modal-app-details {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(20, 184, 166, 0.2);
}

.modal-app-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.modal-app-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 1rem;
}

.modal-app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-description,
.modal-gallery,
.modal-additional {
    margin-bottom: 2rem;
}

.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.modal-gallery ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.modal-gallery li {
    background: rgba(20, 184, 166, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(20, 184, 166, 0.2);
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.modal-gallery li:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.4);
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 8px;
    color: #cbd5e1;
    transition: all 0.3s ease;
    min-height: 120px;
}

.gallery-placeholder:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.4);
}

.modal-video {
    margin-bottom: 2rem;
}

.video-placeholder {
    margin-top: 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(20, 184, 166, 0.2);
}

/* Order items styles */
.order-items {
    margin-bottom: 1rem;
}

.order-item-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.order-item-name {
    flex: 1;
    font-weight: 500;
}

.order-item-price {
    color: #10b981;
    font-weight: 600;
    margin: 0 1rem;
}

.order-item-remove {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1;
}

.order-item-remove:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
    transform: scale(1.1);
}

.order-total {
    text-align: center;
    padding-top: 1rem;
    border-top: 2px solid rgba(20, 184, 166, 0.3);
    margin-top: 1rem;
}

/* Order Modal Styles */
.order-modal-content {
    max-width: 800px;
    width: 90%;
}

.next-steps-info {
    background: rgba(20, 184, 166, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.next-steps-info h4 {
    color: #14b8a6;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.next-steps-info p {
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

/* Fullscreen Gallery Styles */
.fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-gallery[style*="flex"] {
    opacity: 1;
}

.fullscreen-gallery-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fullscreen-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    font-size: 2rem;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.gallery-close:hover {
    background: rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.6);
    transform: scale(1.1);
    color: #ffffff;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 184, 166, 0.2);
    border: 2px solid rgba(20, 184, 166, 0.4);
    color: #14b8a6;
    font-size: 2.5rem;
    font-weight: bold;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.gallery-nav:hover {
    background: rgba(20, 184, 166, 0.4);
    border-color: rgba(20, 184, 166, 0.6);
    transform: translateY(-50%) scale(1.1);
    color: #ffffff;
}

.gallery-prev {
    left: 30px;
}

.gallery-next {
    right: 30px;
}

.gallery-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 25px;
    padding: 8px 16px;
    color: #14b8a6;
    font-weight: 500;
    font-size: 1rem;
    z-index: 10001;
}

/* Improve existing gallery items to show they're clickable */
.modal-gallery-grid .gallery-item {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block; /* Override the flex display from general gallery-item */
    width: 100%;
    height: 140px;
}

.modal-gallery-grid .gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(20, 184, 166, 0.8);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-gallery-grid .gallery-item:hover::after {
    opacity: 1;
}

.modal-gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.modal-gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

.modal-gallery-grid .gallery-item:hover {
    border-color: rgba(20, 184, 166, 0.6);
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.2);
}

/* Style placeholder content within modal gallery items */
.modal-gallery-grid .gallery-item .gallery-placeholder {
    width: 100%;
    height: 100%;
    min-height: 140px;
    margin: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Mobile responsive adjustments for fullscreen gallery */
@media (max-width: 480px) {
    .modal-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .modal-gallery-grid .gallery-item {
        height: 90px;
    }
}

@media (max-width: 768px) {
    .gallery-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .gallery-prev {
        left: 15px;
    }
    
    .gallery-next {
        right: 15px;
    }
    
    .gallery-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: 15px;
        right: 15px;
    }
    
    .gallery-counter {
        bottom: 20px;
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .fullscreen-gallery-content {
        width: 95vw;
        height: 95vh;
    }
}