/* ===== VARIABILE GLOBALE ===== */
:root {
    --primary: #ff0099;
    --accent: #ff6a00;
    --bg: #0a1a28;
    --bg-light: #0c2135;
    --text: #ffffff;
    --text-secondary: #b0b0b0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(15, 25, 40, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.4);
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.4s ease;
}

/* ===== RESET ȘI BAZĂ ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
    position: relative;
    clear: both;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--text);
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

/* ===== UTILITĂȚI ===== */
.text-center { text-align: center; }
.hidden { display: none !important; }
.visible { display: block !important; }

/* Utilitate pentru ascunderea scrollbar-ului */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ===== BUTOANE ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    background: var(--gradient-primary);
    color: var(--text);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%) rotate(45deg);
    transition: var(--transition-normal);
}

.btn:hover::before {
    transform: translateX(100%) rotate(45deg);
}

.btn:hover {
    box-shadow: 0 5px 15px rgba(255, 0, 153, 0.3);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text);
}

.btn-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* ===== HEADER ȘI NAVIGAȚIE ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    padding: 1rem 0;
    background: rgba(10, 26, 40, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

header.scrolled {
    padding: 0.7rem 0;
    background: rgba(10, 26, 40, 0.95);
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    transition: var(--transition-normal);
}

.scrolled .logo img {
    height: 35px;
}

nav ul {
    display: flex;
}

nav li {
    margin: 0 0.8rem;
    position: relative;
}

nav a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-light);
    z-index: 1000;
    transition: var(--transition-normal);
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
}

.mobile-menu li {
    margin: 10px 0;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    font-size: 1.1rem;
}

/* ===== SELECTOR DE LIMBĂ ===== */
.language-selector {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1001;
    display: flex;
    background: rgba(10, 26, 40, 0.7);
    border-radius: 30px;
    padding: 5px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 5px 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 20px;
    transition: var(--transition-fast);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--text);
}

.lang-btn:hover:not(.active) {
    color: var(--text);
}

/* ===== HERO SLIDER ===== */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.3s;
}

.slide-content .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.7s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.7s;
}

.slide.active .slide-content h1,
.slide.active .slide-content p,
.slide.active .slide-content .btn,
.slide.active .hero-buttons {
    opacity: 1;
    transform: translateY(0);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.slider-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* ===== SECȚIUNI GENERALE ===== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 4px;
}

/* ===== SECȚIUNEA DESPRE NOI ===== */
.about-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg), var(--bg-light));
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 0, 153, 0.3), rgba(255, 106, 0, 0.3));
    opacity: 0.5;
    transition: var(--transition-normal);
}

.about-image:hover::before {
    opacity: 0.7;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.about-text strong {
    color: var(--primary);
}

/* ===== SECȚIUNEA SERVICII ===== */
.services-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-light), var(--bg));
    position: relative;
    clear: both;
    width: 100%;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 30px;
    text-align: center;
    transition: var(--transition-slow);
    border: 1px solid var(--border-color);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 0, 153, 0.3);
    will-change: transform, box-shadow;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(255, 0, 153, 0.2);
    border: 2px solid var(--border-color);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    background-color: rgba(15, 25, 40, 0.9);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: translateZ(20px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 0, 153, 0.3);
    border-color: var(--primary);
}

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

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--text);
    transition: var(--transition-normal);
}

.service-card:hover h3 {
    transform: translateZ(15px);
    color: var(--primary);
}

.service-card p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    transition: var(--transition-normal);
    flex-grow: 1;
}

.service-card:hover p {
    transform: translateZ(10px);
}

.service-card .btn {
    margin-top: auto;
}

/* ===== DETALII SERVICII ===== */
.service-details {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    z-index: 100;
    overflow-y: auto;
    padding: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.service-details::-webkit-scrollbar {
    display: none;
}

.service-details h3 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.8rem;
}

.service-details p {
    margin-bottom: 30px;
    color: var(--text-secondary);
}

/* Stiluri pentru bara de căutare și filtrare */
.service-search-filter {
    margin-bottom: 30px;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.search-container {
    display: flex;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    font-size: 0.95rem;
    background-color: var(--input-bg);
    color: var(--text);
    transition: var(--transition-normal);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    padding: 0 15px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.search-btn:hover {
    opacity: 0.9;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 15px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-btn:hover {
    background-color: rgba(255, 0, 153, 0.1);
    border-color: rgba(255, 0, 153, 0.3);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.service-categories {
    margin-top: 30px;
}

.service-category {
    margin-bottom: 40px;
}

.service-category h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.service-category h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.category-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 0, 153, 0.2);
}

.product-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition-normal);
}

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

.product-item h5 {
    padding: 15px 15px 10px;
    font-size: 1.1rem;
    color: var(--text);
}

.product-item p {
    padding: 0 15px 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.product-item .btn {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
}

/* Responsive pentru bara de filtrare */
@media (max-width: 768px) {
    .filter-buttons {
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .filter-buttons::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
}
/* ===== STILURI PENTRU PREVIZUALIZAREA IMAGINILOR ===== */
.image-preview-container {
    display: flex;
    justify-content: center; /* Center the images horizontally */
    align-items: center; /* Center the images vertically */
    margin: 20px 0; /* Add some margin for spacing */
}

.image-preview {
    width: 100px; /* Set a fixed width for the image */
    height: 100px; /* Set a fixed height for the image */
    object-fit: cover; /* Ensure the image covers the area without distortion */
    border-radius: 5px; /* Optional: rounded corners */
    box-shadow: var(--shadow-sm); /* Add a subtle shadow */
    transition: transform var(--transition-normal); /* Smooth scaling on hover */
}

.image-preview:hover {
    transform: scale(1.05); /* Slightly enlarge the image on hover */
}

/* ===== POPUP-URI ȘI MODALS ===== */
.popup, .service-details-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    overflow-y: auto;
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.popup.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: linear-gradient(145deg, #0c1824, #0f2235);
    margin: 40px auto;
    padding: 30px;
    width: 90%;
    max-width: 1000px;
    border-radius: 16px;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    animation: popupFadeIn 0.4s forwards;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.popup-content::-webkit-scrollbar {
    display: none;
}

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

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.close-popup:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Stiluri specifice pentru detaliile serviciilor în popup */
.service-details-popup .service-details {
    display: block !important;
    position: static;
    padding: 30px;
    height: auto;
    overflow: visible;
    background-color: transparent;
}

.service-details-popup .service-details-content {
    padding: 30px;
}

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

.modal-content {
    background-color: var(--bg-light);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.3s ease;
    position: relative;
}

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

.modal .close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal .close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* ===== COȘ DE CUMPĂRĂTURI ===== */
.cart-toggle {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 100;
    transition: var(--transition-normal);
}

.cart-toggle:hover {
    transform: scale(1.1);
    background: var(--accent);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.cart-content {
    max-width: 900px;
    width: 100%;
}

.cart-items {
    margin-bottom: 30px;
    width: 100%;
}

.cart-item {
    display: flex;
    margin-bottom: 15px;
    padding: 15px;
    background-color: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    width: 100%;
}

.cart-item:hover {
    border-color: rgba(255, 0, 153, 0.3);
    box-shadow: var(--shadow-sm);
}

.cart-item-image {
    width: 80px;
    min-width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.cart-item-title {
    font-weight: bold;
    font-size: 1.1rem;
}

.cart-item-details {
    margin-bottom: 10px;
}

.cart-item-details p {
    margin: 5px 0;
}

.cart-item-options {
    margin-top: 10px;
}

.cart-item-options p {
    margin: 5px 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin: 10px 0;
    gap: 10px;
}

.cart-item-file {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.cart-item-file-icon {
    margin-right: 10px;
    color: var(--accent);
}

.cart-item-file-info {
    flex: 1;
}

.cart-item-comments {
    margin-top: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.cart-item-comments-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-fast);
    padding: 5px;
}

.cart-item-remove:hover {
    color: var(--primary);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    width: 100%;
}

.empty-cart {
    text-align: center;
    padding: 30px 0;
}

/* Hide number input spinners in cart */
.cart-item input[type="number"]::-webkit-inner-spin-button,
.cart-item input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield;
    text-align: center;
    width: 50px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: rgba(10, 20, 35, 0.7);
    color: var(--text);
}

/* Style quantity controls */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition-fast);
}

.quantity-btn:hover {
    background: var(--primary);
}

/* Stiluri pentru butonul personalizat de încărcare fișier */
.custom-file-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(15, 25, 40, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
}

.custom-file-btn:hover {
    border-color: #ff0099;
    box-shadow: 0 0 0 3px rgba(255, 0, 153, 0.2);
}

/* Stiluri pentru afișarea numelui fișierului */
.file-name {
    display: block;
    margin: 5px 0 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Stiluri pentru butonul de anulare */
.custom-cancel-btn {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.custom-cancel-btn:hover {
    color: #ff0099;
    border-color: #ff0099;
}

/* Stiluri pentru butonul de transport */
.custom-transport-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff0099, #ff6a00);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.custom-transport-btn:hover {
    background: linear-gradient(135deg, #ff0099, #ff0099);
    box-shadow: 0 0 15px rgba(255, 0, 153, 0.5);
}

/* ===== BUTON ÎNAPOI SUS ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--accent);
}

/* ===== FORMULAR ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 500;
}

.form-control, 
input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(10, 20, 35, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-control:focus, 
input:focus, 
select:focus, 
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 0, 153, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-check input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.form-message.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Stiluri pentru imaginea de referință în formular */
.form-group img {
    display: block;
    width: 150px; /* Dimensiune fixă mai mică */
    height: auto;
    margin: 15px auto; /* Centrare și spațiere */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

/* Container specific pentru imaginea de referință */
.reference-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto;
    max-width: 150px;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 5px;
    border: 1px solid var(--border-color);
}

/* Stiluri pentru butonul de descărcare șablon */
.template-download {
    margin: 15px 0;
    text-align: center;
}

.template-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.template-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.template-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.template-btn i {
    margin-right: 8px;
    font-size: 1.1em;
}

.template-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-style: italic;
}


/* Animație pentru butonul de descărcare */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 153, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 153, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 153, 0);
    }
}

.template-btn.highlight {
    animation: pulse 1.5s infinite;
}

/* ===== SECȚIUNEA PORTOFOLIU ===== */
.portfolio-section {
    width: 100%;
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg), var(--bg-light));
}

.portfolio-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exact 3 coloane */
    gap: 30px;
    margin-top: 50px;
}
.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(100%);
}

.portfolio-overlay h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: #fff;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}
/* Media Queries pentru responsivitate */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== SLIDER PENTRU PORTOFOLIU ===== */
.portfolio-details-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.portfolio-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

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

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.slide-description {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 14px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 5;
}

.slider-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    margin: 0 10px;
}

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

.portfolio-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg);
}

.portfolio-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.portfolio-thumbnails::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 10px;
}

.portfolio-thumbnails::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

.portfolio-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-normal);
    opacity: 0.6;
    border: 2px solid transparent;
}

.portfolio-thumbnails img:hover {
    opacity: 0.9;
}

.portfolio-thumbnails img.active {
    opacity: 1;
    border-color: var(--primary);
}

/* ===== SECȚIUNEA DE VIDEOCLIPURI ===== */
.portfolio-videos {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.video-thumbnail {
    position: relative;
    width: 120px; /* Fixed width */
    height: 80px; /* Fixed height */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
    background-color: var(--bg-light); /* Light background for visibility */
    box-shadow: var(--shadow-sm); /* Subtle shadow */
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    background: rgba(10, 26, 40, 0.5); /* Dark overlay */
}

.video-thumbnail i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary); /* Primary color for the icon */
    font-size: 24px;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md); /* Medium shadow on hover */
}

.video-thumbnail:hover i {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Ensure video fits within the thumbnail */
.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the thumbnail area */
}

.video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Popup styling for the video player */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 26, 40, 0.9); /* Dark background */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it appears above other content */
}

.popup-content {
    background: var(--card-bg); /* Card background */
    padding: 20px;
    border-radius: 8px;
    position: relative;
    box-shadow: var(--shadow-lg); /* Large shadow for depth */
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text); /* White text color */
}


/* ===== FOOTER ===== */
.footer {
    position: relative;
    width: 100%;
    background-color: var(--bg-light);
    color: var(--text);
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin: 0 auto;
    max-width: 1200px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    max-width: 180px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text);
    transition: var(--transition-normal);
}

.social-icons a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-align: left;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-links ul li, .footer-contact ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.footer-contact ul li i {
    color: var(--primary);
    margin-right: 10px;
    margin-top: 4px;
}

.footer-contact ul li span {
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .copyright p {
        margin-bottom: 0;
    }
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* Media Queries pentru responsivitate */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo, .footer-links, .footer-contact {
        align-items: center;
    }
    
    .footer-links h4, .footer-contact h4 {
        text-align: center;
    }
    
    .footer-links h4::after, .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul, .footer-contact ul {
        text-align: center;
    }
    
    .footer-contact ul li {
        justify-content: center;
    }
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero {
        height: 80vh;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .portfolio-container,
    .services-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .portfolio-slider {
        height: 350px;
    }
    
    .popup-content {
        padding: 20px;
        width: 95%;
    }
}

@media (max-width: 576px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .portfolio-container,
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item-image {
        margin-bottom: 15px;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .portfolio-slider {
        height: 250px;
    }
    
    .portfolio-thumbnails img {
        width: 60px;
        height: 45px;
    }
    
    .video-thumbnail {
        width: 100px;
        height: 70px;
    }
}

/* ===== ANIMAȚII ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

@keyframes slideLeft {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

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

.animate-fadeIn { animation: fadeIn 1s ease forwards; }
.animate-slideUp { animation: slideUp 1s ease forwards; }
.animate-slideDown { animation: slideDown 1s ease forwards; }
.animate-slideLeft { animation: slideLeft 1s ease forwards; }
.animate-slideRight { animation: slideRight 1s ease forwards; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-spin { animation: spin 2s linear infinite; }
.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;
}

