/* ==========================================================================
   Variables & Reset - Tedall Corp Premium Tech Style
   ========================================================================== */
:root {
    --bg-global: #f8fafc;     /* Un gri-albăstrui extrem de curat */
    --bg-card: #ffffff;
    --text-main: #0f172a;     /* Slate 900 (Foarte modern) */
    --text-muted: #475569;    /* Slate 600 */
    --primary: #1e40af;       /* Albastru regal închis */
    --primary-light: #eff6ff; /* Fundal subtil pentru tag-uri */
    --accent: #2563eb;        /* Albastru electric pentru elemente active */
    --accent-glow: rgba(37, 99, 235, 0.15);
    --border: #e2e8f0;
    --radius: 16px;           /* Colțuri rotunjite mai moderne */
    --max-width: 1140px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Animații mult mai fluide */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-global);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

/* Animație subtilă de apariție */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Header & Navigation (Glassmorphism efect)
   ========================================================================== */
.main-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    transition: var(--transition);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   Logo Stilizat - Spargerea Limitelor (Proiecte Imposibile)
   ========================================================================== */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

/* Iconița SVG animată subtil */
.logo-icon {
    width: 32px;
    height: 32px;
    color: #3b82f6; /* Albastru neon electric */
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Când pui mouse-ul pe logo, săgeata dă senzația că vrea să iasă din ecran */
.logo-wrapper:hover .logo-icon {
    transform: scale(1.15) translate(2px, -2px);
    color: #60a5fa;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff; /* Va fi alb pe fundalul întunecat din Hero propus anterior */
    background: linear-gradient(135deg, #ffffff 60%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subtitlu fin care poziționează compania în zona de proiecte grele */
.brand-sub {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748b; /* Slate mut */
}
.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

/* Efect de linie subțire la hover pentru link-uri */
.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links .btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: calc(var(--radius) - 4px);
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.2);
}

.nav-links .btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   Hero Section (Tech Gradient & Tipografie Premium)
   ========================================================================== */
.hero-section {
    padding: 160px 0 140px 0;
    position: relative;
    overflow: hidden;
    /* Fundal închis premium cu un grid subtil și reflexii de lumină server */
    background-color: #0b1329; 
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 40%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efect de linie luminoasă (Glow bar) la baza secțiunii */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero-section h1 {
    font-size: 3.8rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.15;
    max-width: 900px;
    margin: 0 auto 28px auto;
    /* Text luminos contrastant pentru modul întunecat */
    background: linear-gradient(135deg, #ffffff 40%, #60a5fa 70%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.35rem;
    color: #94a3b8; /* Gri deschis contrastant */
    max-width: 720px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.7;
}

/* Ajustare pentru meniu când trece peste fundalul închis din Hero */
.main-header {
    background-color: rgba(11, 19, 41, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.logo, .nav-links a:not(.btn-primary) {
    color: #f1f5f9 !important;
}
.logo {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
/* Responsive Hero pentru ecrane mici */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.4rem; }
    .nav-links { display: none; } /* Ideal ar fi un meniu burger separat pe viitor */
}

/* ==========================================================================
   Secțiuni Comune
   ========================================================================== */
section {
    padding: 120px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.75px;
    margin-bottom: 56px;
    text-align: center;
}

/* Linie decorativă tech sub titluri */
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--accent);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.empty-message {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    grid-column: 1 / -1;
    padding: 40px;
}

/* ==========================================================================
   Grid Servicii (Carduri Interactive)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
    border-color: var(--accent);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==========================================================================
   Grid Produse Proprii (Premium Dark Accent Shift)
   ========================================================================== */
.products-section {
    background-color: #f1f5f9; /* Un gri-argintiu pentru delimitare */
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 48px 40px;
    border: 1px solid rgba(226, 232, 240, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
}

.tech-tag {
    align-self: flex-start;
    background-color: var(--primary-light);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.75px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.product-card h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.product-subtitle {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.product-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
    flex-grow: 1;
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    gap: 4px;
}

.project-link:hover {
    color: var(--accent);
    gap: 10px; /* Efect fluid care împinge săgeata la dreapta */
}

/* ==========================================================================
   Grid Clienți & Parteneri (Corectat layout + Design Premium)
   ========================================================================== */
.clients-grid {
    display: grid;
    /* Am transformat dintr-o listă simplă într-un grid modern pe 2 sau 3 coloane */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.client-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    /* Adăugăm o linie verticală subtilă în stânga de brand public */
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
    transition: var(--transition);
}

.client-card:hover {
    border-left-color: var(--accent);
    background-color: #fff;
    transform: translateX(4px); /* Micro-deplasare spre dreapta */
    box-shadow: 0 10px 20px -10px rgba(15, 23, 42, 0.05);
}

.client-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.services-list {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   Footer Minimalist & Clean
   ========================================================================== */
.main-footer {
    background-color: var(--text-main); /* Schimbat pe fundal închis pentru contrast */
    color: #94a3b8; /* Text adaptat pentru fundal închis */
    padding: 48px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.main-footer p {
    letter-spacing: 0.2px;
}