/* --- 1. BASE SETTINGS & DARK THEME VARIABLES --- */
body {
    background-color: #050505;
    color: #e0e0e0;
    margin: 0; padding: 0;
}

.mil-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #050505;
}

/* --- 2. BACKGROUND LAYERS (Copiate din exemplul tău) --- */
.mil-universe-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 0;
    background-image:
            linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(20deg) scale(1.5);
    opacity: 0.4;
    pointer-events: none;
    animation: moveGrid 60s linear infinite;
}

.mil-cyber-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 0;
    background-image: radial-gradient(#00d4ff 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
    pointer-events: none;
}

.mil-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 0;
    background: radial-gradient(circle at 50% 50%, transparent 20%, #050505 90%);
    pointer-events: none;
}

@keyframes moveGrid {
    0% { background-position: 0 0; }
    100% { background-position: 0 1000px; }
}

/* --- 3. PRODUCTS SECTION STYLING --- */
.pl-section {
    --accent: #00d4ff;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --card-bg: rgba(13, 19, 28, 0.6); /* Dark Glass */
    --border: rgba(0, 212, 255, 0.15);
    --border-hover: rgba(0, 212, 255, 0.5);

    position: relative;
    padding: 140px 0 100px;
    font-family: "Rajdhani", sans-serif;
    z-index: 2; /* Peste background */
}

.pl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* Glow Effects specifice secțiunii */
.pl-bg-effects { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.pl-glow {
    position: absolute; width: 600px; height: 600px;
    border-radius: 50%; filter: blur(120px); opacity: 0.25;
}
.pl-glow-1 { top: -10%; left: -10%; background: var(--accent); }
.pl-glow-2 { bottom: 10%; right: -10%; background: #7c3aed; }

.pl-header { margin-bottom: 70px; max-width: 1000px; position: relative; }
.pl-title {
    font-family: "Teko", sans-serif;
    font-size: clamp(48px, 6vw, 80px);
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--text-main);
    margin: 0 0 20px 0;
}
.pl-accent { color: var(--accent); text-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
.pl-lead {
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 600px;
    border-left: 2px solid var(--accent);
    padding-left: 20px;
}

.pl-grid-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.pl-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background: var(--card-bg);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    min-height: 450px;
}

.pl-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.1);
    background: rgba(13, 19, 28, 0.8);
}

.pl-card-content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.pl-chip {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 4px;
    margin-bottom: 24px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.05);
}

.pl-name {
    font-family: "Teko", sans-serif;
    font-size: 48px;
    line-height: 0.9;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 10px 0;
}
.pl-sub {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
}

.pl-spacer { flex: 1; }

.pl-cta {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-family: "Teko", sans-serif;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: 0.3s ease;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
    width: fit-content;
}
.pl-card:hover .pl-cta {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}
.pl-icon { width: 18px; height: 18px; transition: transform 0.3s; }
.pl-card:hover .pl-icon { transform: translateX(3px); }

.pl-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pl-img-glow {
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0,212,255,0.2), transparent 70%);
    filter: blur(50px);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.pl-card:hover .pl-img-glow { opacity: 1; }

.pl-img {
    width: 100%;
    height: auto;
    max-width: 600px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

/* Poziționare specifică imaginilor */
.pl-img-drone {
    transform: scale(1.1) translateX(-40px) translateY(0px);
}
.pl-card:hover .pl-img-drone {
    transform: scale(1.15) translateX(-10px) translateY(-10px) rotate(-2deg);
}

.pl-img-sws {
    transform: scale(0.85) translateX(-40px) translateY(40px);
}
.pl-card:hover .pl-img-sws {
    transform: scale(0.9) translateX(0px) translateY(30px) rotate(-2deg);
}


/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .pl-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto 250px;
        min-height: auto;
    }

    .pl-card-content {
        padding: 30px 24px;
        order: 2; /* Text jos pe mobil */
    }

    .pl-img-wrap {
        order: 1; /* Poza sus pe mobil */
        height: 250px;
        background: radial-gradient(circle at center, rgba(0,212,255,0.05), transparent 60%);
    }

    .pl-img {
        max-width: 300px;
    }

    .pl-img-drone {
        transform: scale(1) translateY(20px);
    }
    .pl-card:hover .pl-img-drone {
        transform: scale(1.05) translateY(15px);
    }

    .pl-img-sws {
        transform: scale(1) translateY(20px);
    }
    .pl-card:hover .pl-img-sws {
        transform: scale(1.05) translateY(15px);
    }

    .pl-title { font-size: 42px; }
    .pl-lead { border: none; padding: 0; }
}