/* Shop Page Specific Styles */
:root {
    --accentColor: #00ff00;
    --accentColor2: #00cc00;
    --dangerColor: #ff0000;
    --font: 'Orbitron', sans-serif;
    --monoFont: 'Share Tech Mono', monospace;
    --bgColor: #000000;
    --cardBg: rgba(0, 0, 0, 0.7);
    --borderColor: rgba(0, 255, 0, 0.2);
}

.back-home {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--accentColor);
    text-decoration: none;
    font-family: var(--monoFont);
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--accentColor);
    padding: 8px 15px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.back-home:hover {
    color: #ffffff;
    text-shadow: 0 0 5px var(--accentColor);
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

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

.back-home:hover::before {
    left: 100%;
}

body {
    background-color: var(--bgColor);
    color: white;
    font-family: var(--monoFont);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.shop-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

.shop-header {
    text-align: center;
    margin-bottom: 40px;
}

.shop-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accentColor);
    text-shadow: 0 0 10px var(--accentColor);
    margin-bottom: 10px;
    font-family: var(--font);
}

.shop-subtitle {
    font-size: 1.2rem;
    color: var(--accentColor2);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--monoFont);
}

/* Welcome Section */
.welcome-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
}

.welcome-content {
    flex: 1;
    padding-right: 30px;
}

.welcome-title {
    font-size: 1.8rem;
    color: var(--accentColor);
    margin-bottom: 15px;
    font-family: var(--font);
}

.welcome-text {
    color: #ffffff;
    font-family: var(--monoFont);
    line-height: 1.6;
    margin-bottom: 20px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--accentColor);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    object-fit: cover;
}

/* Services Section */
.services-section {
    margin-bottom: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
}

.services-title {
    font-size: 1.5rem;
    color: var(--accentColor);
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.services-title::before {
    content: "[";
    margin-right: 5px;
    color: var(--dangerColor);
}

.services-title::after {
    content: "]";
    margin-left: 5px;
    color: var(--dangerColor);
}

.services-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
}

.service-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--accentColor);
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accentColor), transparent);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.service-title {
    font-size: 1.3rem;
    color: var(--accentColor);
    margin-bottom: 15px;
    font-family: var(--font);
    text-align: center;
}

.service-description {
    color: #ffffff;
    font-family: var(--monoFont);
    text-align: center;
    margin-bottom: 20px;
}

.service-price {
    color: var(--accentColor);
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

.service-button {
    display: block;
    width: 80%;
    margin: 0 auto;
    padding: 10px;
    background: transparent;
    color: var(--accentColor);
    border: 1px solid var(--accentColor);
    border-radius: 5px;
    font-family: var(--monoFont);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.service-button:hover {
    background: var(--accentColor);
    color: #000;
    box-shadow: 0 0 10px var(--accentColor);
}

/* Portfolio Section */
.portfolio-section {
    margin-bottom: 50px;
}

.portfolio-info {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-preview {
    margin-top: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-title {
    font-size: 1.5rem;
    color: var(--accentColor);
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.portfolio-title::before {
    content: "[";
    margin-right: 5px;
    color: var(--dangerColor);
}

.portfolio-title::after {
    content: "]";
    margin-left: 5px;
    color: var(--dangerColor);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
}

.portfolio-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.portfolio-item {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--accentColor);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 350px;
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.1);
}

.portfolio-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accentColor), transparent);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.portfolio-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    flex: 1;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.portfolio-name {
    font-size: 1.5rem;
    color: var(--accentColor);
    margin-bottom: 10px;
    margin-top: 0;
    font-family: var(--font);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-price {
    font-size: 1.3rem;
    color: var(--dangerColor);
    margin-bottom: 15px;
    font-family: var(--font);
    font-weight: bold;
    text-shadow: 0 0 5px var(--dangerColor);
    background: rgba(255, 0, 0, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    border: 1px solid var(--dangerColor);
    margin-bottom: 10px;
}

.portfolio-description {
    color: #e0e0e0;
    font-family: var(--monoFont);
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.portfolio-code-wrapper {
    margin-bottom: 15px;
    text-align: center;
}

.portfolio-code-label {
    color: var(--accentColor2);
    font-family: var(--monoFont);
    font-size: 0.9rem;
    margin-right: 5px;
}

.modal-price {
    font-size: 1.5rem;
    color: var(--dangerColor);
    margin-bottom: 10px;
    font-family: var(--font);
    font-weight: bold;
    text-shadow: 0 0 8px var(--dangerColor);
    background: rgba(255, 0, 0, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
    border: 2px solid var(--dangerColor);
}

.portfolio-code {
    color: var(--accentColor2);
    font-family: var(--monoFont);
    margin-bottom: 15px;
    font-size: 0.9rem;
    background: rgba(0, 255, 0, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

.portfolio-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    width: 100%;
    padding: 0 10px;
}

.portfolio-button {
    flex: 1;
    padding: 14px;
    background: transparent;
    color: var(--accentColor);
    border: 1px solid var(--accentColor);
    border-radius: 8px;
    font-family: var(--monoFont);
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-button:hover {
    background: var(--accentColor);
    color: #000;
    box-shadow: 0 0 10px var(--accentColor);
}

.portfolio-button.view {
    border-color: var(--accentColor);
    color: var(--accentColor);
    flex: 1;
}

.portfolio-button.buy {
    border-color: var(--dangerColor);
    color: var(--dangerColor);
    flex: 1;
}

.portfolio-button.demo {
    border-color: #0088ff;
    color: #0088ff;
    flex: 1;
}

.portfolio-button.view:hover {
    background: var(--accentColor);
    color: #000;
}

.portfolio-button.buy:hover {
    background: var(--dangerColor);
    color: #000;
}

.portfolio-button.demo:hover {
    background: #0088ff;
    color: #000;
}

/* Modal Styles */
.modal, .portfolio-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content, .portfolio-modal .modal-content {
    background: rgba(0, 0, 0, 0.9);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid var(--accentColor);
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes matrixFadeIn {
    from { opacity: 0; }
    to { opacity: 0.15; }
}

.close-modal, .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: var(--bgColor);
    color: var(--accentColor);
    border: 2px solid var(--accentColor);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px var(--accentColor);
    z-index: 10;
}

.close-modal:hover, .modal-close:hover {
    background: var(--accentColor);
    color: var(--bgColor);
    transform: rotate(90deg);
    box-shadow: 0 0 15px var(--accentColor);
}

.modal-header {
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    margin-bottom: 20px;
}

.modal-title {
    color: var(--accentColor);
    font-size: 1.5rem;
    font-family: var(--font);
    margin: 0;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-code-wrapper {
    margin-top: 15px;
    margin-bottom: 10px;
    text-align: center;
    background: rgba(0, 255, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--accentColor2);
}

.modal-code-label {
    color: var(--accentColor2);
    font-family: var(--monoFont);
    font-size: 1rem;
    margin-right: 10px;
}

.modal-code {
    color: #ffffff;
    font-family: var(--font);
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.modal-code-tooltip {
    text-align: center;
    font-size: 0.9rem;
    color: var(--accentColor2);
    margin-bottom: 20px;
}

.modal-code-tooltip i {
    margin-right: 5px;
}

.code-display {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 5px;
    padding: 15px;
    font-family: var(--monoFont);
    color: var(--accentColor);
    white-space: pre-wrap;
    overflow-x: auto;
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
}

.modal-button {
    padding: 8px 15px;
    background: transparent;
    color: var(--accentColor);
    border: 1px solid var(--accentColor);
    border-radius: 5px;
    font-family: var(--monoFont);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-button:hover {
    background: var(--accentColor);
    color: #000;
    box-shadow: 0 0 10px var(--accentColor);
}

.modal-button.danger {
    color: var(--dangerColor);
    border-color: var(--dangerColor);
}

.modal-button.danger:hover {
    background: var(--dangerColor);
    color: #000;
    box-shadow: 0 0 10px var(--dangerColor);
}

/* Purchase Form */
.purchase-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-label {
    color: var(--accentColor);
    font-family: var(--monoFont);
    font-size: 0.9rem;
}

.form-input {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 5px;
    padding: 10px;
    color: white;
    font-family: var(--monoFont);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accentColor);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Footer */
.cyber-footer {
    background: rgba(0, 0, 0, 0.7);
    border-top: 1px solid var(--accentColor);
    padding: 15px 0;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 -5px 15px rgba(0, 255, 0, 0.1);
}

.footer-content {
    color: var(--accentColor);
    font-family: var(--monoFont);
    font-size: 1rem;
    padding: 10px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    letter-spacing: 1px;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.footer-content {
    animation: pulse 2s infinite ease-in-out;
}

.footer-link {
    color: var(--accentColor);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    text-shadow: 0 0 5px var(--accentColor);
}

/* Matrix Background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    animation: matrixFadeIn 1.5s ease-in-out;
}

/* Modal Image */
.modal-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid var(--accentColor);
    position: relative;
    aspect-ratio: 16/9;
}

.portfolio-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--accentColor);
    transition: all 0.3s ease;
    position: relative;
    filter: brightness(0.9);
    aspect-ratio: 16/9;
}

.portfolio-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--accentColor), transparent);
    box-shadow: 0 0 15px var(--accentColor);
    animation: portfolio-scan 2s linear infinite;
    z-index: 1;
}

@keyframes portfolio-scan {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

.modal-title {
    color: var(--accentColor);
    font-family: var(--font);
    margin-bottom: 10px;
}

.modal-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-buy {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    color: var(--dangerColor);
    border: 1px solid var(--dangerColor);
    border-radius: 5px;
    text-decoration: none;
    font-family: var(--monoFont);
    transition: all 0.3s ease;
}

.modal-buy:hover {
    background: var(--dangerColor);
    color: #000;
    box-shadow: 0 0 10px var(--dangerColor);
}

/* Cyber Stats Styles */
.cyber-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
    overflow-x: auto;
    margin-bottom: 10px;
}

.cyber-stats .stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--monoFont);
    font-size: 0.9rem;
    color: var(--accentColor2);
}

.cyber-stats .stat-value {
    color: var(--accentColor);
    font-weight: bold;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .services-container {
        flex-direction: column;
    }
    
    .welcome-section {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .welcome-content {
        padding-right: 0;
        margin-top: 20px;
    }
    
    .shop-title {
        font-size: 2rem;
    }
    
    .shop-subtitle {
        font-size: 1rem;
    }
    
    .modal-content, .portfolio-modal .modal-content {
        width: 85%;
        margin: 10% auto;
    }
    
    .modal-image {
        max-height: 200px;
    }
    
    /* Footer responsive styles */
    .footer-content {
        font-size: 0.9rem;
        padding: 8px;
    }
}

@media screen and (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 15px;
        max-width: 100%;
    }
    
    .portfolio-item {
        width: 100%;
        height: auto;
        min-height: 500px;
    }
    
    .portfolio-actions {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }
    
    .portfolio-button {
        flex: 1;
        padding: 8px 5px;
        font-size: 0.8rem;
        min-width: 0;
    }
    
    .shop-title {
        font-size: 1.8rem;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .modal-content, .portfolio-modal .modal-content {
        width: 90%;
        margin: 5% auto;
        padding: 15px;
    }
    
    .modal-image {
        max-height: 150px;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-buy {
        display: block;
        text-align: center;
    }
}

/* Responsive styles for modal content */
@media screen and (max-width: 768px) {
    .modal-content {
        padding: 15px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-price {
        font-size: 1.2rem;
    }

    .modal-description ul {
        padding-left: 20px;
    }

    .modal-description li {
        margin-bottom: 8px;
    }
}

@media screen and (max-width: 480px) {
    .modal-content {
        padding: 10px;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .modal-price {
        font-size: 1rem;
    }

    .modal-description p,
    .modal-description li {
        font-size: 0.9rem;
    }
}