/* Variabile Generale - Dark Mode Premium */
:root {
    --primary: #f2a900;
    --primary-glow: rgba(242, 169, 0, 0.4);
    --primary-dark: #b88100;
    --dark-bg: #090b10;
    --dark-surface: #13161f;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-neon: 0 0 15px var(--primary-glow);
}

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

html {
    scroll-behavior: smooth;
}

body.dark-theme {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--text-main);
}

/* Background Ambient Shapes */
.bg-gradient-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary);
}

.shape-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: #0044ff;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 15%) scale(1.1); }
}

/* Utilitati */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.text-center { text-align: center; }
.highlight { color: var(--primary); }
.bg-darker { background-color: rgba(0, 0, 0, 0.2); }

/* Titluri Actiune */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    margin-bottom: 25px;
}

.title-accent {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
    margin-bottom: 50px;
    border-radius: 4px;
}

.center-accent {
    margin: 0 auto 50px auto;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(242, 169, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Butoane & Linkuri */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #000;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.hover-underline:hover::after {
    width: 100%;
}

.btn-neon {
    border: 1px solid var(--primary);
    padding: 10px 24px;
    border-radius: 30px;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.btn-neon:hover {
    background: var(--primary);
    color: #000;
    box-shadow: var(--shadow-neon);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    transition: padding 0.4s ease;
    /* Fundal mereu activ pt vizibilitate perfecta pe blur modal blending */
    background: rgba(9, 11, 16, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar.scrolled {
    padding: 10px 5%;
}

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

/* Magia CSS pentru Logo:
   1. invert(1) transformă elefantul/textul negru în alb, și fundalul alb în negru (Dark Mode).
   2. contrast/brightness ajustează nuanța să fie alb pur.
   3. mix-blend-mode: screen face ca negrul să devină invizibil/transparent pe fundalul nostru! */
.navbar .smart-logo {
    height: 45px;
    width: auto;
    filter: invert(1) contrast(1.2) brightness(1.2);
    mix-blend-mode: screen;
    transition: transform 0.3s ease;
}

.navbar .smart-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin-top: -50px;
}

.hero .subtitle {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
    border: 1px solid var(--glass-border);
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(242, 169, 0, 0.1);
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero .desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0.7;
    animation: driftDown 2s infinite ease-in-out;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    margin: 0 auto 10px auto;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--primary);
    border-radius: 2px;
}

.scroll-indicator p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

@keyframes driftDown {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
    50% { transform: translate(-50%, 10px); opacity: 1; }
}

/* Povestea Noastra */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.story-text-block {
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -20px;
    z-index: -1;
}

.story-text-block p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.full-span {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.summary-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-card p { margin-bottom: 10px; }

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Servicii UI (Tabs + Accordion) */
.services-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: start;
}

/* Tabs Nav */
.tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 2px solid var(--glass-border);
    padding-left: 0;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    font-family: var(--font-head);
    font-weight: 500;
    text-align: left;
    padding: 20px 30px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border-radius: 0 12px 12px 0;
}

.tab-btn i {
    width: 30px;
    text-align: center;
    color: var(--primary);
    opacity: 0.5;
    transition: var(--transition);
}

.tab-btn::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.tab-btn:hover {
    color: var(--text-main);
    background: var(--glass-bg);
}

.tab-btn.active {
    color: var(--primary);
    background: rgba(242, 169, 0, 0.05);
}

.tab-btn.active i {
    opacity: 1;
}

.tab-btn.active::before {
    transform: scaleY(1);
}

/* Tabs Content */
.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-pane.active {
    display: block;
}

.tab-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.tab-intro {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.inner-card {
    background: var(--dark-surface);
}

.inner-card p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.stylish-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.stylish-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.stylish-list strong {
    color: var(--text-main);
}

/* Accordion */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 24px 30px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    font-family: var(--font-head);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.accordion-header i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-header {
    background: rgba(242, 169, 0, 0.05);
    border-bottom: 1px solid var(--glass-border);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-inner {
    padding: 30px;
    color: var(--text-muted);
    line-height: 1.8;
}

.accordion-inner p {
    margin-bottom: 15px;
}

.accordion-inner p:last-child {
    margin-bottom: 0;
}

/* -------------------------------- */
/* Galerie / Portofoliu Styles */
/* -------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
    cursor: pointer;
    padding: 0; /* Override glass-card default for images */
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(242, 169, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: #fff;
    font-size: 2.5rem;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Modal Galerie */
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    margin-top: 50px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(242,169,0,0.2);
    animation: zoomIn 0.3s ease-out;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Certificari */
.cert-text {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.cert-item {
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cert-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(242, 169, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
    border: 1px solid rgba(242, 169, 0, 0.2);
}

.cert-item:hover .cert-icon {
    background: var(--primary);
    color: #000;
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-neon);
}

.cert-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
}

/* Footer Element & Contact Form */
.footer {
    border-top: 1px solid var(--glass-border);
    background: var(--dark-bg);
    position: relative;
    padding-bottom: 20px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: var(--primary);
    box-shadow: var(--shadow-neon);
}

.footer-content {
    padding: 100px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.brand-col h3 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.brand-col p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.get-in-touch h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-ico {
    width: 40px;
    height: 40px;
    background: var(--dark-surface);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.contact-form-container {
    padding: 35px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 14px;
    background: var(--dark-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(242, 169, 0, 0.2);
}

.footer-bottom {
    background: #000;
    padding: 30px;
    text-align: center;
    color: #555;
    font-family: var(--font-body);
}

/* -------------------------------- */
/* ANIMAȚII INTERSECTION OBSERVER */
/* -------------------------------- */
.hidden-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

/* Când primește clasa animată de la JS, apare lin */
.show-element {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; padding-top: 20px; }
    to { opacity: 1; padding-top: 0; }
}

/* -------------------------------- */
/* Responsive Tweakings */
/* -------------------------------- */
@media (max-width: 1024px) {
    .services-wrapper {
        grid-template-columns: 1fr;
    }
    .tabs-nav {
        flex-direction: row;
        flex-wrap: wrap;
        border-left: none;
        border-bottom: 2px solid var(--glass-border);
        padding-bottom: 20px;
    }
    .tab-btn {
        border-radius: 8px;
        padding: 12px 20px;
        font-size: 1.1rem;
    }
    .tab-btn::before {
        display: none;
    }
    .tab-btn.active {
        background: var(--primary);
        color: #000;
    }
    .story-grid, .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3.2rem; }
    .hero .desc { font-size: 1.1rem; }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background: rgba(9, 11, 16, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
    }
    .nav-links.active {
        right: 0;
    }
    .hamburger {
        display: block;
        z-index: 1001;
    }
}
