:root {
    --primary: #c41e3a;
    --secondary: #1a1a1a;
    --accent: #ff6b35;
    --light: #f5f5f5;
    --dark: #0a0a0a;
    --text: #333;
    --border: #ddd;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
}

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

header {
    background: var(--secondary);
    color: #fff;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    z-index: 1001;
}

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

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    gap: 0.3rem;
}

.mobile-menu-toggle span:not(.menu-text) {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
    display: block;
}

.menu-text {
    font-size: 0.75rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
    white-space: nowrap;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--accent);
}

.desktop-only {
    display: inline-block;
}

/* Language Switch */
.lang-switch {
    margin-left: 1rem;
}

.lang-link {
    background: rgba(196, 30, 58, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.lang-link:hover {
    background: var(--primary);
}

.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.cta-button:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary);
}

.servicii {
    background: var(--light);
}

.servicii-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.serviciu-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.serviciu-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.caracteristici {
    background: var(--secondary);
    color: #fff;
}

.caracteristici h2 {
    color: #fff;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.spec-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 2px solid rgba(196, 30, 58, 0.3);
    transition: all 0.3s;
}

.spec-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.spec-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.spec-label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.spec-item p {
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1.4;
}

.materiale {
    background: var(--light);
    overflow: hidden;
}

.materiale-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.3s;
}

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

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

.carousel-container {
    overflow: hidden;
    padding: 0 10px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.material-slide {
    min-width: calc(100% / 6);
    padding: 0 1rem;
    text-align: center;
    flex-shrink: 0;
}

.material-slide img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.material-slide span {
    display: block;
    font-weight: 600;
    color: var(--secondary);
    font-size: 1.1rem;
}

.avantaje-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.avantaj-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.avantaj-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(196, 30, 58, 0.15);
}

.avantaj-item h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.aplicatii {
    background: var(--light);
}

.aplicatii-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.aplicatie-cat {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.aplicatie-cat h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.aplicatie-cat ul {
    list-style: none;
}

.aplicatie-cat li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.aplicatie-cat li:before {
    content: "\2192";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.portofoliu-preview {
    background: #fff;
}

.portofoliu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portofoliu-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.portofoliu-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portofoliu-item h3 {
    padding: 1rem;
    font-size: 1.2rem;
    color: var(--secondary);
}

.portofoliu-item p {
    padding: 0 1rem 1rem;
    color: var(--text);
}

.view-more {
    display: block;
    text-align: center;
    margin-top: 2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.view-more:hover {
    color: var(--accent);
}

.page-header {
    background: var(--secondary);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
}

.portofoliu-full {
    padding: 4rem 0;
}

.portofoliu-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.portofoliu-item-full {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.portofoliu-item-full img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.portofoliu-details {
    padding: 1.5rem;
}

.portofoliu-details h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.portofoliu-details .data {
    color: #999;
    font-size: 0.9rem;
}

.contact {
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact-info h4 {
    color: var(--secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form button {
    background: var(--primary);
    color: #fff;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
}

.contact-form button:hover {
    background: var(--accent);
}

.legal-content {
    padding: 4rem 0;
}

.legal-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--light);
    padding: 3rem;
    border-radius: 10px;
}

.legal-box h2 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.legal-box h2:first-child {
    margin-top: 0;
}

.legal-box ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

footer {
    background: var(--secondary);
    color: #fff;
    padding: 3rem 0 1rem;
}

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

.footer-col h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .navbar .container {
        position: relative;
    }
    
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu a {
        font-size: 1.1rem;
    }
    
    .lang-switch {
        margin-left: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .servicii-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .spec-number {
        font-size: 1.5rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-btn.prev {
        left: 0;
    }
    
    .carousel-btn.next {
        right: 0;
    }
    
    .material-slide {
        min-width: calc(100% / 3);
    }
    
    .contact-grid,
    .aplicatii-list,
    .avantaje-grid,
    .portofoliu-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-box {
        padding: 2rem 1.5rem;
    }
}

/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

#cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.cookie-btn.accept {
    background: var(--primary);
    color: #fff;
}

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

.cookie-btn.decline {
    background: var(--light);
    color: var(--text);
    border: 1px solid var(--border);
}

.cookie-btn.decline:hover {
    background: #e0e0e0;
}

.cookie-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.cookie-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.7rem;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-link {
        text-align: center;
        display: block;
        padding: 0.5rem 0;
    }
    
    #cookie-consent-banner {
        padding: 1rem 0;
    }
}