/* General Styles */
:root {
    --primary-color: #0f2a3f;
    --secondary-color: #1a4a6b;
    --accent-color: #2dd4a4;
    --dark-bg: #0d1117;
    --darker-bg: #010409;
    --card-bg: #161b22;
    --text-light: #c9d1d9;
    --text-muted: #8b949e;
    --border-color: #30363d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    background-color: rgba(13, 17, 23, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo-img:hover {
    transform: scale(1.05);
}

.navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brl-text {
    display: none;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.brl-text.active {
    display: block;
}

.brl-text:hover {
    color: #fff;
    text-shadow: 0 0 20px var(--accent-color);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Full Page Styles */
.full-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
}

/* Home Section */
.home-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    background: url('background.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.6), rgba(15, 42, 63, 0.4));
    z-index: 1;
}

.home-section .container {
    position: relative;
    z-index: 2;
}

.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Servicii Section */
.servicii-section {
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 3rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto 3rem;
    border-radius: 2px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(45, 212, 164, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    transform: rotateY(360deg);
}

.service-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent-color);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ============================================== */
/* Portofoliu Section - MODIFICĂRI AICI           */
/* ============================================== */
.portofoliu-section {
    background: var(--dark-bg);
}

.portfolio-items {
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    /* Am scos margin-bottom: 4rem; acum este gestionat de Bootstrap (mb-4) */
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.portfolio-content {
    /* Am scos display: flex, gap, și align-items */
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem; /* Padding redus pentru carduri mai mici */
    transition: all 0.3s ease;
    text-align: center; /* Am centrat conținutul */
    height: 100%; /* Asigură înălțime egală pentru cardurile de pe același rând */
}

.portfolio-content:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(45, 212, 164, 0.2);
}

/* Am scos regulile .left-layout și .right-layout care nu mai sunt necesare */

/* Am unificat .portfolio-text-left/right în .portfolio-text */
.portfolio-text {
    /* Am scos flex: 1 și min-width */
}

.portfolio-text h3 {
    font-size: 1.25rem; /* Am redus puțin fontul pentru cardul mai mic */
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
    /* Asigură că textul nu depășește o anumită înălțime */
    min-height: 50px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon {
    font-size: 2.5rem; /* Am redus icon-ul */
    margin-top: 1rem;
}

.portfolio-description {
    /* Această regulă poate rămâne, nu afectează noile carduri */
    flex: 1;
    min-width: 300px;
}

.portfolio-description p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}
/* ============================================== */
/* Sfârșit Modificări Portofoliu                 */
/* ============================================== */


/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
}

.contact-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 212, 164, 0.1), transparent);
    transition: left 0.6s ease;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(45, 212, 164, 0.4);
}

.contact-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    transition: all 0.5s ease;
}

.contact-card:hover .contact-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: rotateY(360deg) scale(1.1);
}

.contact-icon svg {
    width: 45px;
    height: 45px;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.contact-card:hover .contact-icon svg {
    color: #fff;
}

.contact-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.contact-card:hover .contact-link {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* Testimoniale Section (de pe index.html) */
.testimoniale-section {
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(45, 212, 164, 0.3);
}

.testimonial-header {
    margin-bottom: 1.5rem;
}

.testimonial-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.testimonial-stars {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.testimonial-stars .star-filled {
    color: #ffc107; 
}

.testimonial-stars .star-empty {
    color: var(--border-color);
}

.testimonial-snippet {
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Despre Noi Section (de pe index.html) */
.despre-section {
    background: var(--dark-bg);
    padding: 100px 0 50px;
}

.despre-section .img-fluid {
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
    border-radius: 16px;
}

.despre-section .img-fluid:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(45, 212, 164, 0.2);
}

.despre-section .text-start { 
    text-align: left !important; 
}


/* ============================================== */
/* STILURI NOI ADĂUGATE                           */
/* ============================================== */

/* Buton Accent */
.btn-accent {
    background-color: var(--accent-color);
    color: var(--darker-bg);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #fff;
    color: var(--darker-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(45, 212, 164, 0.4);
}

/* Stiluri pentru Modal (Pop-up) Recenzie */
.modal-content {
    background-color: var(--card-bg);
    border: 1px solid var(--accent-color);
    color: var(--text-light);
    border-radius: 16px;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-title {
    color: var(--accent-color);
    font-weight: 600;
}

/* Stiluri Formular Modal */
.modal-body .form-label {
    color: var(--text-muted);
}

.modal-body .form-control,
.modal-body .form-select {
    background-color: var(--dark-bg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    background-color: var(--dark-bg);
    color: var(--text-light);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(45, 212, 164, 0.25);
}

.modal-body .form-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}


/* Responsive Design */
@media (max-width: 992px) {
    .navbar-center {
        position: static;
        transform: none;
        margin: 1rem 0;
    }
    
    /* Am șters regulile responsive pentru .portfolio-content 
     deoarece grila Bootstrap (col-md-6) se ocupă de asta.
    */
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .home-section h1 {
        font-size: 2.5rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .portfolio-item {
        /* Am scos margin-bottom: 2rem; se ocupă Bootstrap */
    }
    
    .contact-card {
        margin-bottom: 1.5rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}